]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/storage/GlusterFsEdit.js
ui: eslint: fix various spacing related issues
[pve-manager.git] / www / manager6 / storage / GlusterFsEdit.js
index b0140556775365715c34c3217195b0eb42bca99c..4ea5da26cef0222a8a3aca09489f8fdab021092b 100644 (file)
@@ -9,7 +9,7 @@ Ext.define('PVE.storage.GlusterFsScan', {
     matchFieldWidth: false,
     listConfig: {
        loadingText: 'Scanning...',
-       width: 350
+       width: 350,
     },
     doRawQuery: function() {
     },
@@ -32,7 +32,7 @@ Ext.define('PVE.storage.GlusterFsScan', {
        me.glusterServer = server;
     },
 
-    initComponent : function() {
+    initComponent: function() {
        var me = this;
 
        if (!me.nodename) {
@@ -40,27 +40,29 @@ Ext.define('PVE.storage.GlusterFsScan', {
        }
 
        var store = Ext.create('Ext.data.Store', {
-           fields: [ 'volname' ],
+           fields: ['volname'],
            proxy: {
                type: 'proxmox',
-               url: '/api2/json/nodes/' + me.nodename + '/scan/glusterfs'
-           }
+               url: '/api2/json/nodes/' + me.nodename + '/scan/glusterfs',
+           },
        });
 
        store.sort('volname', 'ASC');
 
        Ext.apply(me, {
-           store: store
+           store: store,
        });
 
        me.callParent();
-    }
+    },
 });
 
 Ext.define('PVE.storage.GlusterFsInputPanel', {
     extend: 'PVE.panel.StorageBase',
 
-    initComponent : function() {
+    onlineHelp: 'storage_glusterfs',
+
+    initComponent: function() {
        var me = this;
 
        me.column1 = [
@@ -77,48 +79,34 @@ Ext.define('PVE.storage.GlusterFsInputPanel', {
                            volumeField.setServer(value);
                            volumeField.setValue('');
                        }
-                   }
-               }
+                   },
+               },
            },
            {
                xtype: me.isCreate ? 'proxmoxtextfield' : 'displayfield',
                name: 'server2',
                value: '',
                fieldLabel: gettext('Second Server'),
-               allowBlank: true
+               allowBlank: true,
            },
            {
                xtype: me.isCreate ? 'pveGlusterFsScan' : 'displayfield',
                name: 'volume',
                value: '',
                fieldLabel: 'Volume name',
-               allowBlank: false
+               allowBlank: false,
            },
            {
                xtype: 'pveContentTypeSelector',
-               cts: ['images', 'iso', 'backup', 'vztmpl'],
+               cts: ['images', 'iso', 'backup', 'vztmpl', 'snippets'],
                name: 'content',
                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.callParent();
-    }
+    },
 });