ui: show (local)datastore column only in global sync/verifyview
its rather hacky, but our cbind mixin does not support columns (yet). if it does sometime in the future, we could use that instead Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
8b62cbe752
commit
445b0043b2
@ -306,4 +306,13 @@ Ext.define('PBS.config.SyncJobView', {
|
||||
sortable: true,
|
||||
},
|
||||
],
|
||||
|
||||
initComponent: function() {
|
||||
let me = this;
|
||||
let hideLocalDatastore = !!me.datastore;
|
||||
|
||||
me.columns[3].hidden = hideLocalDatastore;
|
||||
|
||||
me.callParent();
|
||||
},
|
||||
});
|
||||
|
@ -234,6 +234,11 @@ Ext.define('PBS.config.VerifyJobView', {
|
||||
flex: 1,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
header: gettext('Datastore'),
|
||||
dataIndex: 'store',
|
||||
flex: 1,
|
||||
},
|
||||
{
|
||||
header: gettext('Skip Verified'),
|
||||
dataIndex: 'ignore-verified',
|
||||
@ -290,4 +295,13 @@ Ext.define('PBS.config.VerifyJobView', {
|
||||
sortable: true,
|
||||
},
|
||||
],
|
||||
|
||||
initComponent: function() {
|
||||
let me = this;
|
||||
let hideDatastore = !!me.datastore;
|
||||
|
||||
me.columns[1].hidden = hideDatastore;
|
||||
|
||||
me.callParent();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user