ui: small style cleanups/refactoring

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-18 18:04:16 +02:00
parent 8772ca727c
commit a502bc5617
2 changed files with 3 additions and 9 deletions

View File

@ -40,9 +40,7 @@ Ext.define('PBS.config.ACLView', {
path: view.aclPath,
aclType: 'user',
listeners: {
destroy: function() {
me.reload();
},
destroy: () => me.reload(),
},
}).show();
},
@ -54,9 +52,7 @@ Ext.define('PBS.config.ACLView', {
path: view.aclPath,
aclType: 'token',
listeners: {
destroy: function() {
me.reload();
},
destroy: () => me.reload(),
},
}).show();
},

View File

@ -21,9 +21,7 @@ Ext.define('PBS.DataStorePanel', {
me.setActiveTab(state.tab);
} else if (state.tab) {
// if we are not rendered yet, defer setting the activetab
setTimeout(function() {
me.setActiveTab(state.tab);
}, 10);
setTimeout(() => me.setActiveTab(state.tab), 10);
}
},