]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/dc/Health.js
ui: eslint: fix various spacing related issues
[pve-manager.git] / www / manager6 / dc / Health.js
index 6c4f26c9ac0b857650eaf1b8eed8dbc3f105d442..ec7d3497e163092951cf262622d7244589064a8a 100644 (file)
@@ -5,18 +5,18 @@ Ext.define('PVE.dc.Health', {
     title: gettext('Health'),
 
     bodyPadding: 10,
-    height: 220,
+    height: 250,
     layout: {
        type: 'hbox',
-       align: 'stretch'
+       align: 'stretch',
     },
 
     defaults: {
        flex: 1,
        xtype: 'box',
        style: {
-           'text-align':'center'
-       }
+           'text-align': 'center',
+       },
     },
 
     nodeList: [],
@@ -30,12 +30,12 @@ Ext.define('PVE.dc.Health', {
 
        var cluster = {
            iconCls: PVE.Utils.get_health_icon('good', true),
-           text: gettext("Standalone node - no cluster defined")
+           text: gettext("Standalone node - no cluster defined"),
        };
 
        var nodes = {
            online: 0,
-           offline: 0
+           offline: 0,
        };
 
        // by default we have one node
@@ -46,7 +46,7 @@ Ext.define('PVE.dc.Health', {
            var item = records[i];
            if (item.data.type === 'node') {
                nodes[item.data.online === 1 ? 'online':'offline']++;
-           } else if(item.data.type === 'cluster') {
+           } else if (item.data.type === 'cluster') {
                cluster.text = gettext("Cluster") + ": ";
                cluster.text += item.data.name + ", ";
                cluster.text += gettext("Quorate") + ": ";
@@ -71,7 +71,6 @@ Ext.define('PVE.dc.Health', {
        var me = this;
        var cephstatus = me.getComponent('ceph');
        if (!success || records.length < 1) {
-
            // if ceph status is already visible
            // don't stop to update
            if (cephstatus.isVisible()) {
@@ -98,20 +97,20 @@ Ext.define('PVE.dc.Health', {
        destroy: function() {
            var me = this;
            me.cephstore.stopUpdate();
-       }
+       },
     },
 
     items: [
        {
            itemId: 'clusterstatus',
            xtype: 'pveHealthWidget',
-           title: gettext('Status')
+           title: gettext('Status'),
        },
        {
            itemId: 'nodestatus',
            data: {
                online: 0,
-               offline: 0
+               offline: 0,
            },
            tpl: [
                '<h3>' + gettext('Nodes') + '</h3><br />',
@@ -127,8 +126,8 @@ Ext.define('PVE.dc.Health', {
                gettext('Offline'),
                '</div>',
                '<div class="right-aligned">{offline}</div>',
-               '</div>'
-           ]
+               '</div>',
+           ],
        },
        {
            itemId: 'ceph',
@@ -142,10 +141,10 @@ Ext.define('PVE.dc.Health', {
                element: 'el',
                click: function() {
                    var sp = Ext.state.Manager.getProvider();
-                   sp.set('dctab', {value:'ceph'}, true);
-               }
-           }
-       }
+                   sp.set('dctab', { value: 'ceph' }, true);
+               },
+           },
+       },
     ],
 
     initComponent: function() {
@@ -158,11 +157,11 @@ Ext.define('PVE.dc.Health', {
            storeid: 'pve-cluster-ceph',
            proxy: {
                type: 'proxmox',
-               url: '/api2/json/nodes/' + me.nodeList[me.nodeIndex].node + '/ceph/status'
-           }
+               url: '/api2/json/nodes/' + me.nodeList[me.nodeIndex].node + '/ceph/status',
+           },
        });
        me.callParent();
        me.mon(me.cephstore, 'load', me.updateCeph, me);
        me.cephstore.startUpdate();
-    }
+    },
 });