diff --git a/www/manager6/ceph/Status.js b/www/manager6/ceph/Status.js index 2de2ceed..3383163b 100644 --- a/www/manager6/ceph/Status.js +++ b/www/manager6/ceph/Status.js @@ -73,10 +73,11 @@ Ext.define('PVE.node.CephStatus', { stateful: true, stateId: 'ceph-status-warnings', xtype: 'grid', - // since we load the store manually, - // to show the emptytext, we have to - // specify an empty store - store: { data:[] }, + // since we load the store manually to show the emptytext, + // we have to specify an empty one here + store: { + data: [], + }, emptyText: gettext('No Warnings/Errors'), columns: [ { diff --git a/www/manager6/node/Config.js b/www/manager6/node/Config.js index 91a999e1..18d7f672 100644 --- a/www/manager6/node/Config.js +++ b/www/manager6/node/Config.js @@ -80,7 +80,7 @@ Ext.define('PVE.node.Config', { }) }); - var restartBtn = Ext.create('Proxmox.button.Button', { + let restartBtn = Ext.create('Proxmox.button.Button', { text: gettext('Reboot'), disabled: !caps.nodes['Sys.PowerMgmt'], dangerous: true, @@ -114,7 +114,9 @@ Ext.define('PVE.node.Config', { Ext.apply(me, { title: gettext('Node') + " '" + nodename + "'", hstateid: 'nodetab', - defaults: { statusStore: me.statusStore }, + defaults: { + statusStore: me.statusStore + }, tbar: [ restartBtn, shutdownBtn, shellBtn, actionBtn] }); @@ -400,9 +402,9 @@ Ext.define('PVE.node.Config', { me.callParent(); - me.mon(me.statusStore, 'load', function(s, records, success) { - var uptimerec = s.data.get('uptime'); - var powermgmt = uptimerec ? uptimerec.data.value : false; + me.mon(me.statusStore, 'load', function(store, records, success) { + let uptimerec = store.data.get('uptime'); + let powermgmt = uptimerec ? uptimerec.data.value : false; if (!caps.nodes['Sys.PowerMgmt']) { powermgmt = false; }