ui: tape/TapeRestore: allow preselecting a datastore
for that we need to split the prefilter additions, else we always filter the snaphots too and giving 'undefined' filters all snapshots... Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
68ac8976eb
commit
e01689978e
@ -732,19 +732,26 @@ Ext.define('PBS.TapeManagement.SnapshotGrid', {
|
||||
let me = this;
|
||||
me.callParent();
|
||||
if (me.prefilter !== undefined) {
|
||||
me.store.filters.add(
|
||||
{
|
||||
id: 'x-gridfilter-store',
|
||||
property: 'store',
|
||||
operator: 'in',
|
||||
value: [me.prefilter.store],
|
||||
},
|
||||
{
|
||||
id: 'x-gridfilter-snapshot',
|
||||
property: 'snapshot',
|
||||
value: me.prefilter.snapshot,
|
||||
},
|
||||
);
|
||||
if (me.prefilter.store !== undefined) {
|
||||
me.store.filters.add(
|
||||
{
|
||||
id: 'x-gridfilter-store',
|
||||
property: 'store',
|
||||
operator: 'in',
|
||||
value: [me.prefilter.store],
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
if (me.prefilter.snapshot !== undefined) {
|
||||
me.store.filters.add(
|
||||
{
|
||||
id: 'x-gridfilter-snapshot',
|
||||
property: 'snapshot',
|
||||
value: me.prefilter.snapshot,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
me.mon(me.store, 'filterchange', () => me.checkChange());
|
||||
|
Reference in New Issue
Block a user