mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-08 23:30:18 +00:00
file browser: disable item # size rendering
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
267c536516
commit
3271d12f24
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user