add the haStatus panel

for the new status

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-11-22 12:07:29 +01:00 committed by Dietmar Maurer
parent e61cbac50b
commit c06fc22640
2 changed files with 40 additions and 0 deletions

View File

@ -182,6 +182,7 @@ JSSRC= \
storage/ZFSEdit.js \
storage/ZFSPoolEdit.js \
ha/StatusView.js \
ha/Status.js \
ha/GroupSelector.js \
ha/ResourceEdit.js \
ha/Resources.js \

39
www/manager6/ha/Status.js Normal file
View File

@ -0,0 +1,39 @@
Ext.define('PVE.ha.Status', {
extend: 'Ext.panel.Panel',
alias: 'widget.pveHAStatus',
onlineHelp: 'chapter_ha_manager',
scrollable: true,
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'
}
});
me.items = [{
xtype: 'pveHAStatusView',
title: gettext('Status'),
rstore: me.rstore,
border: 0,
padding: '0 0 20 0'
},{
xtype: 'pveHAResourcesView',
title: gettext('Resources'),
border: 0,
rstore: me.rstore
}];
me.callParent();
me.on('activate', me.rstore.startUpdate);
}
});