]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/ha/StatusView.js
merge ha resources into the ha status panel
[pve-manager.git] / www / manager6 / ha / StatusView.js
index 5a9dd5941fcaaaf90e0cef5f6dcde552b821f65b..212207bca38264bcf8745019061f73afc31f84ac 100644 (file)
@@ -14,16 +14,9 @@ Ext.define('PVE.ha.StatusView', {
     initComponent : function() {
        var me = this;
 
-       me.rstore = Ext.create('PVE.data.ObjectStore', {
-           interval: me.interval,
-           model: 'pve-ha-status',
-           storeid: 'pve-store-' + (++Ext.idSeed),
-           groupField: 'type',
-           proxy: {
-                type: 'pve',
-               url: '/api2/json/cluster/ha/status/current'
-           }
-       });
+       if (!me.rstore) {
+           throw "no rstore given";
+       }
 
        PVE.Utils.monStoreErrors(me, me.rstore);
 
@@ -36,7 +29,12 @@ Ext.define('PVE.ha.StatusView', {
                    var p2 = me.sortPriority[rec2.data.type];
                    return (p1 !== p2) ? ((p1 > p2) ? 1 : -1) : 0;
                }
-           }]
+           }],
+           filters: {
+               property: 'type',
+               value: 'service',
+               operator: '!='
+           }
        });
 
        Ext.apply(me, {