upload: added class on buttons for easier customization
Massimo Melina committed
Feb 8, 2024 at 11:46 UTC
1cc13e3502f3187b9796e6602ddc0700c66a7f3f
1 file changed
+1
-1
frontend/src/upload.ts
+1
-1
@@ -211,7 +211,7 @@ function FilesList({ entries, actions }: { entries: ToUpload[], actions: { [icon
211
return h(Fragment, { key: i },
212
h('tr', {},
213
h('td', { className: 'nowrap '}, ..._.map(actions, (cb, icon) =>
214
- cb && iconBtn(icon, () => cb(entries[i]))) ),
214
+ cb && iconBtn(icon, () => cb(entries[i]), { className: `action-${icon}` })) ),
215
h('td', {}, formatBytes(e.file.size)),
216
h('td', {},
217
h('span', { className: working ? 'ani-working' : undefined }, e.name || path(entries[i].file)),