[pve-devel] [PATCH manager] ui: vm opts: add hint for spice foldersharing

Aaron Lauterer a.lauterer at proxmox.com
Wed Nov 6 13:17:09 CET 2019


Spice foldersharing needs the webdavd daemon installed inside the guest.
This patch adds a hint to remind the user to install it in the VM.

Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
 www/manager6/form/SpiceEnhancementSelector.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/www/manager6/form/SpiceEnhancementSelector.js b/www/manager6/form/SpiceEnhancementSelector.js
index 072a9022..d4091996 100644
--- a/www/manager6/form/SpiceEnhancementSelector.js
+++ b/www/manager6/form/SpiceEnhancementSelector.js
@@ -1,11 +1,15 @@
 Ext.define('PVE.form.SpiceEnhancementSelector', {
     extend: 'Proxmox.panel.InputPanel',
     alias: 'widget.pveSpiceEnhancementSelector',
+
+    viewModel: {},
+
     items: [
 	{
 	    xtype: 'proxmoxcheckbox',
 	    itemId: 'foldersharing',
 	    name: 'foldersharing',
+	    reference: 'foldersharing',
 	    fieldLabel: 'Folder Sharing',
 	    uncheckedValue: 0,
 	},
@@ -27,6 +31,15 @@ Ext.define('PVE.form.SpiceEnhancementSelector', {
 	    userCls: 'pmx-hint',
 	    value: gettext('To use these features set the display to SPICE in the hardware settings of the VM.'),
 	    hidden: true,
+	},
+	{
+	    xtype: 'displayfield',
+	    itemId: 'spicefolderhint',
+	    userCls: 'pmx-hint',
+	    value: gettext('Make sure the SPICE WebDav daemon is installed in the VM.'),
+	    bind: {
+		hidden: '{!foldersharing.checked}',
+	    }
 	}
     ],
 
-- 
2.20.1





More information about the pve-devel mailing list