mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-26 20:45:39 +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 => {
|
calculate: data => {
|
||||||
if (data.size === undefined) {
|
if (data.size === undefined) {
|
||||||
return '';
|
return '';
|
||||||
} else if (data.type === 'd') {
|
} else if (false && data.type === 'd') { // eslint-disable-line no-constant-condition
|
||||||
let fs = data.size === 1 ? gettext('{0} item') : gettext('{0} items');
|
// 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);
|
return Ext.String.format(fs, data.size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user