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:
Dominik Csapak 2020-11-10 12:58:00 +01:00 committed by Thomas Lamprecht
parent 8b62cbe752
commit 445b0043b2
2 changed files with 23 additions and 0 deletions

View File

@ -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();
},
});

View File

@ -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();
}
});