plugin/list-uploader: show icon even if there's no name and ip is not visible
Massimo Melina committed
Sep 27, 2024 at 00:27 UTC
fed308db5887eacf320334fb8ef5f8610cded051
1 file changed
+1
-1
plugins/list-uploader/public/main.js
+1
-1
@@ -14,7 +14,7 @@
14
return !x ? ''
15
: display === 'user' ? x.username
16
: display === 'ip' || !x.username && shouldShowIpWithUser ? x.ip
17
- : shouldShowIpWithUser ? x.ip + ' (' + x.username + ')' : x.username
17
+ : shouldShowIpWithUser ? x.ip + ' (' + x.username + ')' : (x.username || ' ')
18
}, [data])
19
const iconOnly = display === 'tooltip'
20
return text && HFS.h('span', { className: 'uploader', title: HFS.t`Uploader` + (iconOnly ? ' ' + text : '') },