[pve-devel] [PATCH manager 3/3] show hookscript in gui

Dominik Csapak d.csapak at proxmox.com
Mon Jan 21 09:44:39 CET 2019


only viewing, no editing
and show it only when it is set

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/lxc/Options.js  | 3 +++
 www/manager6/qemu/Options.js | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/www/manager6/lxc/Options.js b/www/manager6/lxc/Options.js
index e4a8d86b..23409938 100644
--- a/www/manager6/lxc/Options.js
+++ b/www/manager6/lxc/Options.js
@@ -140,6 +140,9 @@ Ext.define('PVE.lxc.Options', {
 		defaultValue: Proxmox.Utils.noneText,
 		editor: Proxmox.UserName === 'root at pam' ?
 		    'PVE.lxc.FeaturesEdit' : undefined
+	    },
+	    hookscript: {
+		header: gettext('Hookscript')
 	    }
 	};
 
diff --git a/www/manager6/qemu/Options.js b/www/manager6/qemu/Options.js
index 4ee28ff9..d1fb5a1f 100644
--- a/www/manager6/qemu/Options.js
+++ b/www/manager6/qemu/Options.js
@@ -292,6 +292,9 @@ Ext.define('PVE.qemu.Options', {
 			fieldLabel: gettext('Enabled')
 		    }
 		} : undefined
+	    },
+	    hookscript: {
+		header: gettext('Hookscript')
 	    }
 	};
 
-- 
2.11.0





More information about the pve-devel mailing list