]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
file browser: disable item # size rendering
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 16 May 2022 16:03:07 +0000 (18:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 16 May 2022 16:03:07 +0000 (18:03 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/window/FileBrowser.js

index 495538b6834dc0034602352920731e7fc6c7f35a..a519d6bad5aa07b19e64c0676d35526bb35b5b51 100644 (file)
@@ -8,8 +8,9 @@ Ext.define('proxmox-file-tree', {
            calculate: data => {
                if (data.size === undefined) {
                    return '';
-               } else if (data.type === 'd') {
-                   let fs = data.size === 1 ? gettext('{0} item') : gettext('{0} items');
+               } else if (false && data.type === 'd') { // eslint-disable-line no-constant-condition
+                   // FIXME: enable again once we fixed trouble with confusing size vs item #
+                   let fs = data.size === 1 ? gettext('{0} Item') : gettext('{0} Items');
                    return Ext.String.format(fs, data.size);
                }