]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/lxc/FeaturesEdit.js
ui: eslint: fix trailing comma and comma related whitespaces errors
[pve-manager.git] / www / manager6 / lxc / FeaturesEdit.js
index 5e359e26f5192b2f45a2afc0d78251c9ba226527..042d32a6c7d2f12bdc44c90150476a15f0d275ae 100644 (file)
@@ -18,8 +18,8 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
            },
            unprivilegedOnly: function(get) {
                return (!get('unprivileged') ? gettext('unprivileged only') : '');
-           }
-       }
+           },
+       },
     },
 
     items: [
@@ -30,12 +30,12 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
            bind: {
                disabled: '{!unprivileged}',
                boxLabel: '{unprivilegedOnly}',
-           }
+           },
        },
        {
            xtype: 'proxmoxcheckbox',
            fieldLabel: gettext('Nesting'),
-           name: 'nesting'
+           name: 'nesting',
        },
        {
            xtype: 'proxmoxcheckbox',
@@ -44,7 +44,7 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
            bind: {
                disabled: '{unprivileged}',
                boxLabel: '{privilegedOnly}',
-           }
+           },
        },
        {
            xtype: 'proxmoxcheckbox',
@@ -53,8 +53,19 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
            bind: {
                disabled: '{unprivileged}',
                boxLabel: '{privilegedOnly}',
-           }
-       }
+           },
+       },
+       {
+           xtype: 'proxmoxcheckbox',
+           name: 'fuse',
+           fieldLabel: 'FUSE',
+       },
+       {
+           xtype: 'proxmoxcheckbox',
+           name: 'mknod',
+           fieldLabel: gettext('Create Device Nodes'),
+           boxLabel: gettext('Experimental'),
+       },
     ],
 
     onGetValues: function(values) {
@@ -81,7 +92,7 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
     setValues: function(values) {
        var me = this;
 
-       me.viewModel.set({ unprivileged: values.unprivileged });
+       me.viewModel.set('unprivileged', values.unprivileged);
 
        if (values.features) {
            var res = PVE.Parser.parsePropertyString(values.features);
@@ -97,7 +108,13 @@ Ext.define('PVE.lxc.FeaturesInputPanel', {
            }
            this.callParent([res]);
        }
-    }
+    },
+
+    initComponent: function() {
+       let me = this;
+       me.mounts = []; // reset state
+       me.callParent();
+    },
 });
 
 Ext.define('PVE.lxc.FeaturesEdit', {
@@ -105,16 +122,10 @@ Ext.define('PVE.lxc.FeaturesEdit', {
     xtype: 'pveLxcFeaturesEdit',
 
     subject: gettext('Features'),
+    autoLoad: true,
+    width: 350,
 
     items: [{
-       xtype: 'pveLxcFeaturesInputPanel'
+       xtype: 'pveLxcFeaturesInputPanel',
     }],
-
-    initComponent : function() {
-       var me = this;
-
-       me.callParent();
-
-       me.load();
-    }
 });