]> git.proxmox.com Git - pve-manager.git/commitdiff
gui: add datacenter ceph option
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 27 May 2019 12:14:06 +0000 (14:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 27 May 2019 14:17:29 +0000 (16:17 +0200)
links to the cluster wide dashboard
also link the datacenter dashboard to this instead of a random node

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/Config.js
www/manager6/dc/Health.js

index e574f5db60fb6130f8f3a4a5694e2e7fce2b2af6..52cd106f4e5089e7018674117862f95b00df1fb0 100644 (file)
@@ -33,6 +33,12 @@ Ext.define('PVE.dc.Config', {
                iconCls: 'fa fa-server',
                itemId: 'cluster'
            },
+           {
+               title: 'Ceph',
+               itemId: 'ceph',
+               iconCls: 'fa fa-ceph',
+               xtype: 'pveNodeCephStatus'
+           },
            {
                xtype: 'pveDcOptionView',
                title: gettext('Options'),
index 29e616d5f9f4fc4ca2842ce0113d05dbc52025bd..18ea5afa0c4ae48059c34ea456b31e44942c2259 100644 (file)
@@ -141,15 +141,8 @@ Ext.define('PVE.dc.Health', {
            listeners: {
                element: 'el',
                click: function() {
-                   var me = this.component.up('pveDcHealth');
                    var sp = Ext.state.Manager.getProvider();
-
-                   // preselect the ceph tab
-                   sp.set('nodetab', {value:'ceph'});
-
-                   // select the node that had the successfull api call
-                   var id = me.nodeList[me.nodeIndex].id;
-                   Ext.ComponentQuery.query('pveResourceTree')[0].selectById(id);
+                   sp.set('dctab', {value:'ceph'}, true);
                }
            }
        }