From 2f79184cc019f5dcbc229375868c7a641b7da4d7 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 4 Jul 2021 22:09:36 +0200 Subject: [PATCH] ui: node status: small code size reduction Signed-off-by: Thomas Lamprecht --- www/manager6/node/StatusView.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/manager6/node/StatusView.js b/www/manager6/node/StatusView.js index acc7639a..d94d0f47 100644 --- a/www/manager6/node/StatusView.js +++ b/www/manager6/node/StatusView.js @@ -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}',