[pve-devel] [PATCH manager 1/3] Add optional parameter panelOnlineHelp

Emmanuel Kasper e.kasper at proxmox.com
Thu Dec 1 14:16:38 CET 2016


this widget and its containing InputPanel can be used by both
QEMU/LXC so we need to be able to pass the onlineHelp as
the instantiation step
---
 www/manager6/qemu/StartupEdit.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/StartupEdit.js b/www/manager6/qemu/StartupEdit.js
index 3c832c5..8ed45a2 100644
--- a/www/manager6/qemu/StartupEdit.js
+++ b/www/manager6/qemu/StartupEdit.js
@@ -56,13 +56,18 @@ Ext.define('PVE.qemu.StartupInputPanel', {
 
 Ext.define('PVE.qemu.StartupEdit', {
     extend: 'PVE.window.Edit',
+    alias: 'widget.pveQemuStartupEdit',
+    panelOnlineHelp: undefined,
 
     initComponent : function() {
 	/*jslint confusion: true */
 
 	var me = this;
 
-	var ipanel = Ext.create('PVE.qemu.StartupInputPanel', {});
+	var ipanelConfig = me.panelOnlineHelp ? {onlineHelp: me.panelOnlineHelp} :
+	    {};
+
+	var ipanel = Ext.create('PVE.qemu.StartupInputPanel', ipanelConfig);
 
 	Ext.applyIf(me, {
 	    subject: gettext('Start/Shutdown order'),
-- 
2.1.4





More information about the pve-devel mailing list