]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/storage/NFSEdit.js
bump version to 8.2.6
[pve-manager.git] / www / manager6 / storage / NFSEdit.js
index 8ccec8f2fdde6e8088d8b0f0977058d340332961..202c7de087fd824e85fff5b1953feb156798f930 100644 (file)
@@ -9,9 +9,10 @@ Ext.define('PVE.storage.NFSScan', {
     matchFieldWidth: false,
     listConfig: {
        loadingText: gettext('Scanning...'),
-       width: 350
+       width: 350,
     },
     doRawQuery: function() {
+       // do nothing
     },
 
     onTriggerClick: function() {
@@ -32,7 +33,7 @@ Ext.define('PVE.storage.NFSScan', {
        me.nfsServer = server;
     },
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
        if (!me.nodename) {
@@ -40,21 +41,21 @@ Ext.define('PVE.storage.NFSScan', {
        }
 
        var store = Ext.create('Ext.data.Store', {
-           fields: [ 'path', 'options' ],
+           fields: ['path', 'options'],
            proxy: {
                type: 'proxmox',
-               url: '/api2/json/nodes/' + me.nodename + '/scan/nfs'
-           }
+               url: '/api2/json/nodes/' + me.nodename + '/scan/nfs',
+           },
        });
 
        store.sort('path', 'ASC');
 
        Ext.apply(me, {
-           store: store
+           store: store,
        });
 
        me.callParent();
-    }
+    },
 });
 
 Ext.define('PVE.storage.NFSInputPanel', {
@@ -62,7 +63,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
 
     onlineHelp: 'storage_nfs',
 
-    options : [],
+    options: [],
 
     onGetValues: function(values) {
        var me = this;
@@ -83,7 +84,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
        if (values.options === '') {
            delete values.options;
            if (!me.isCreate) {
-               values["delete"] = "options";
+               values.delete = "options";
            }
        }
 
@@ -93,7 +94,6 @@ Ext.define('PVE.storage.NFSInputPanel', {
     setValues: function(values) {
        var me = this;
        if (values.options) {
-           var res = values.options;
            me.options = values.options.split(',');
            me.options.forEach(function(item) {
                var match = item.match(/^vers=(.*)$/);
@@ -105,7 +105,7 @@ Ext.define('PVE.storage.NFSInputPanel', {
        return me.callParent([values]);
     },
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
 
@@ -123,15 +123,15 @@ Ext.define('PVE.storage.NFSInputPanel', {
                            exportField.setServer(value);
                            exportField.setValue('');
                        }
-                   }
-               }
+                   },
+               },
            },
            {
                xtype: me.isCreate ? 'pveNFSScan' : 'displayfield',
                name: 'export',
                value: '',
                fieldLabel: 'Export',
-               allowBlank: false
+               allowBlank: false,
            },
            {
                xtype: 'pveContentTypeSelector',
@@ -139,25 +139,11 @@ Ext.define('PVE.storage.NFSInputPanel', {
                value: 'images',
                multiSelect: true,
                fieldLabel: gettext('Content'),
-               allowBlank: false
-           }
-       ];
-
-       me.column2 = [
-           {
-               xtype: 'proxmoxintegerfield',
-               fieldLabel: gettext('Max Backups'),
-               disabled: true,
-               name: 'maxfiles',
-               reference: 'maxfiles',
-               minValue: 0,
-               maxValue: 365,
-               value: me.isCreate ? '1' : undefined,
-               allowBlank: false
-           }
+               allowBlank: false,
+           },
        ];
 
-       me.advancedColumn1 = [
+       me.advancedColumn2 = [
            {
                xtype: 'proxmoxKVComboBox',
                fieldLabel: gettext('NFS Version'),
@@ -169,11 +155,11 @@ Ext.define('PVE.storage.NFSInputPanel', {
                        ['3', '3'],
                        ['4', '4'],
                        ['4.1', '4.1'],
-                       ['4.2', '4.2']
-               ]
-           }
+                       ['4.2', '4.2'],
+               ],
+           },
        ];
 
        me.callParent();
-    }
+    },
 });