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

View File

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