From 3271d12f24b7c6c0cce02b672697a5cd98aa056b Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 16 May 2022 18:03:07 +0200 Subject: [PATCH] file browser: disable item # size rendering Signed-off-by: Thomas Lamprecht --- src/window/FileBrowser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/window/FileBrowser.js b/src/window/FileBrowser.js index 495538b..a519d6b 100644 --- a/src/window/FileBrowser.js +++ b/src/window/FileBrowser.js @@ -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); }