ui: small style cleanups/refactoring
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8772ca727c
commit
a502bc5617
|
@ -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();
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue