[pve-devel] [PATCH manager 5/5] ui: panel/StatusPanel: eslint fixes

Dominic Jäger d.jaeger at proxmox.com
Wed May 19 12:56:22 CEST 2021


Signed-off-by: Dominic Jäger <d.jaeger at proxmox.com>
---
 www/manager6/panel/StatusPanel.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/www/manager6/panel/StatusPanel.js b/www/manager6/panel/StatusPanel.js
index f7bb4a91..f9e3537b 100644
--- a/www/manager6/panel/StatusPanel.js
+++ b/www/manager6/panel/StatusPanel.js
@@ -24,8 +24,8 @@ Ext.define('PVE.panel.StatusPanel', {
 	    listeners: {
 		tabchange: function() {
 		    var atab = me.getActiveTab().itemId;
-		    var state = { value: atab };
-		    sp.set(stateid, state);
+		    let tabstate = { value: atab };
+		    sp.set(stateid, tabstate);
 		},
 	    },
 	    items: [
@@ -46,11 +46,11 @@ Ext.define('PVE.panel.StatusPanel', {
 
 	me.items.get(0).fireEvent('show', me.items.get(0));
 
-	var statechange = function(sp, key, state) {
+	var statechange = function(_, key, newstate) {
 	    if (key === stateid) {
 		var atab = me.getActiveTab().itemId;
-		var ntab = state.value;
-		if (state && ntab && atab != ntab) {
+		let ntab = newstate.value;
+		if (newstate && ntab && atab !== ntab) {
 		    me.setActiveTab(ntab);
 		}
 	    }
-- 
2.20.1






More information about the pve-devel mailing list