ui: tape restore wizard: always show snapshot grid

looks (almost confusingly) empty else and no real disadvantage in
showing the disabled one until a media-set is selected and loaded

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-05-26 19:09:06 +02:00
parent 01a99f5651
commit 7d5049c350

View File

@ -229,7 +229,6 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
me.setDataStores(Object.keys(datastores), true);
if (response.result.data.length > 0) {
grid.setDisabled(false);
grid.setVisible(true);
grid.setData(response.result.data);
grid.getSelectionModel().selectAll();
// we've shown a big list, center the window again
@ -356,7 +355,6 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
name: 'snapshots',
height: 322,
disabled: true, // will be shown/enabled on successful load
hidden: true,
listeners: {
change: 'updateDatastores',
},