ui: fix error when reloading DataStoreContent
...when an entry is selected, that doesn't exist after the reload. E.g. when one deletes selects a file within a snapshot and then clicks the delete icon for said snapshot, focusRow would then fail and the loading mask stay on until a reload. Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
parent
be10cdb122
commit
80db161e05
@ -232,9 +232,11 @@ Ext.define('PBS.DataStoreContent', {
|
|||||||
}
|
}
|
||||||
return selected === id;
|
return selected === id;
|
||||||
}, undefined, true);
|
}, undefined, true);
|
||||||
|
if (selection) {
|
||||||
view.setSelection(selection);
|
view.setSelection(selection);
|
||||||
view.getView().focusRow(selection);
|
view.getView().focusRow(selection);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Proxmox.Utils.setErrorMask(view, false);
|
Proxmox.Utils.setErrorMask(view, false);
|
||||||
if (view.getStore().getFilters().length > 0) {
|
if (view.getStore().getFilters().length > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user