[pbs-devel] [PATCH proxmox-backup 6/9] ui: tape/BackupOverview: add generic 'Restore' button
Dominik Csapak
d.csapak at proxmox.com
Wed May 26 15:48:08 CEST 2021
this will open the restore window without anything preselected
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
www/tape/BackupOverview.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/www/tape/BackupOverview.js b/www/tape/BackupOverview.js
index e6a78574..e8273f86 100644
--- a/www/tape/BackupOverview.js
+++ b/www/tape/BackupOverview.js
@@ -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: [
--
2.20.1
More information about the pbs-devel
mailing list