mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 22:42:30 +00:00
add the haStatus panel
for the new status Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
e61cbac50b
commit
c06fc22640
@ -182,6 +182,7 @@ JSSRC= \
|
|||||||
storage/ZFSEdit.js \
|
storage/ZFSEdit.js \
|
||||||
storage/ZFSPoolEdit.js \
|
storage/ZFSPoolEdit.js \
|
||||||
ha/StatusView.js \
|
ha/StatusView.js \
|
||||||
|
ha/Status.js \
|
||||||
ha/GroupSelector.js \
|
ha/GroupSelector.js \
|
||||||
ha/ResourceEdit.js \
|
ha/ResourceEdit.js \
|
||||||
ha/Resources.js \
|
ha/Resources.js \
|
||||||
|
39
www/manager6/ha/Status.js
Normal file
39
www/manager6/ha/Status.js
Normal 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);
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user