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:
parent
01a99f5651
commit
7d5049c350
@ -229,7 +229,6 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
|
|||||||
me.setDataStores(Object.keys(datastores), true);
|
me.setDataStores(Object.keys(datastores), true);
|
||||||
if (response.result.data.length > 0) {
|
if (response.result.data.length > 0) {
|
||||||
grid.setDisabled(false);
|
grid.setDisabled(false);
|
||||||
grid.setVisible(true);
|
|
||||||
grid.setData(response.result.data);
|
grid.setData(response.result.data);
|
||||||
grid.getSelectionModel().selectAll();
|
grid.getSelectionModel().selectAll();
|
||||||
// we've shown a big list, center the window again
|
// we've shown a big list, center the window again
|
||||||
@ -356,7 +355,6 @@ Ext.define('PBS.TapeManagement.TapeRestoreWindow', {
|
|||||||
name: 'snapshots',
|
name: 'snapshots',
|
||||||
height: 322,
|
height: 322,
|
||||||
disabled: true, // will be shown/enabled on successful load
|
disabled: true, // will be shown/enabled on successful load
|
||||||
hidden: true,
|
|
||||||
listeners: {
|
listeners: {
|
||||||
change: 'updateDatastores',
|
change: 'updateDatastores',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user