]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: tape restore wizard: always show snapshot grid
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 26 May 2021 17:09:06 +0000 (19:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 26 May 2021 17:09:36 +0000 (19:09 +0200)
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>
www/tape/window/TapeRestore.js

index 90aa0d5ba4b526ea3e7556efd5fb7a92cf948a19..a3137f469717e67513b316fc0da3594695a85cb5 100644 (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',
                            },