[pve-devel] [PATCH manager] Add Help Button for Backup Modal Windows

Emmanuel Kasper e.kasper at proxmox.com
Wed Jun 28 15:26:03 CEST 2017


Modal Windows disable the Workspace behind them, so it was not possible
to get onlineHelp when starting a oneshot backup or configuring a backup job.
---
 www/manager6/dc/Backup.js     | 1 +
 www/manager6/window/Backup.js | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 8ae399c4..f736b41f 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -192,6 +192,7 @@ Ext.define('PVE.dc.BackupEdit', {
 	/*jslint confusion: false*/
 
 	var ipanel = Ext.create('PVE.panel.InputPanel', {
+	    onlineHelp: 'chapter_vzdump',
 	    column1: column1,
 	    column2:  column2,
 	    onGetValues: function(values) {
diff --git a/www/manager6/window/Backup.js b/www/manager6/window/Backup.js
index 7378c0de..36ffb143 100644
--- a/www/manager6/window/Backup.js
+++ b/www/manager6/window/Backup.js
@@ -107,6 +107,12 @@ Ext.define('PVE.window.Backup', {
 	    }
 	});
 
+	var helpBtn = Ext.create('PVE.button.Help', {
+	    onlineHelp: 'chapter_vzdump',
+	    listenToGlobalEvent: false,
+	    hidden: false
+	});
+
 	var title = gettext('Backup') + " " + 
 	    ((me.vmtype === 'lxc') ? "CT" : "VM") +
 	    " " + me.vmid;
@@ -118,7 +124,7 @@ Ext.define('PVE.window.Backup', {
 	    layout: 'auto',
 	    border: false,
 	    items: [ me.formPanel ],
-	    buttons: [ submitBtn ]
+	    buttons: [ helpBtn, '->', submitBtn ]
 	});
 
 	me.callParent();
-- 
2.11.0





More information about the pve-devel mailing list