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,
|
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();
|
||||||
},
|
},
|
||||||
|
@ -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);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user