From afb790db73e9e22fc04843a7a2e946d0f4b61a1d Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Wed, 26 May 2021 15:48:08 +0200 Subject: [PATCH] ui: tape/BackupOverview: add generic 'Restore' button this will open the restore window without anything preselected Signed-off-by: Dominik Csapak --- 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: [