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:
parent
0732de361a
commit
afb790db73
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue