ui: node status: small code size reduction

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-04 22:09:36 +02:00
parent 4b832488aa
commit 2f79184cc0

View File

@ -113,7 +113,7 @@ Ext.define('PVE.node.StatusView', {
{
iconCls: 'fa fa-fw fa-hdd-o',
itemId: 'rootfs',
title: gettext('HD space') + '(root)',
title: '/ ' + gettext('HD space'),
valueField: 'rootfs',
maxField: 'rootfs',
renderer: Proxmox.Utils.render_node_size_usage,
@ -162,10 +162,8 @@ Ext.define('PVE.node.StatusView', {
colspan: 2,
printBar: false,
title: gettext('Repository Status'),
// for bind
setValue: function(value) {
let me = this;
me.updateValue(value);
setValue: function(value) { // for binding below
this.updateValue(value);
},
bind: {
value: '{repoStatusMessage}',