ui: window/Settings: add summarycolumns settings
like in pve Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
b20368ee1b
commit
01284de0b2
@ -244,6 +244,9 @@ Ext.define('PBS.DataStoreSummary', {
|
||||
activate: function() { this.rrdstore.startUpdate(); },
|
||||
deactivate: function() { this.rrdstore.stopUpdate(); },
|
||||
destroy: function() { this.rrdstore.stopUpdate(); },
|
||||
resize: function(panel) {
|
||||
Proxmox.Utils.updateColumns(panel);
|
||||
},
|
||||
},
|
||||
|
||||
initComponent: function() {
|
||||
@ -256,6 +259,14 @@ Ext.define('PBS.DataStoreSummary', {
|
||||
|
||||
me.callParent();
|
||||
|
||||
let sp = Ext.state.Manager.getProvider();
|
||||
me.mon(sp, 'statechange', function(provider, key, value) {
|
||||
if (key !== 'summarycolumns') {
|
||||
return;
|
||||
}
|
||||
Proxmox.Utils.updateColumns(me);
|
||||
});
|
||||
|
||||
Proxmox.Utils.API2Request({
|
||||
url: `/config/datastore/${me.datastore}`,
|
||||
waitMsgTarget: me.down('pbsDataStoreInfo'),
|
||||
|
Reference in New Issue
Block a user