ui: tape/BackupOverview: add generic 'Restore' button

this will open the restore window without anything preselected

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-05-26 15:48:08 +02:00 committed by Thomas Lamprecht
parent 0732de361a
commit afb790db73

View File

@ -17,6 +17,12 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
});
},
restore: function() {
Ext.create('PBS.TapeManagement.TapeRestoreWindow', {
autoShow: true,
});
},
restoreBackups: function(view, rI, cI, item, e, rec) {
let me = this;
@ -255,6 +261,10 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
text: gettext('New Backup'),
handler: 'backup',
},
{
text: gettext('Restore'),
handler: 'restore',
},
],
columns: [