]> git.proxmox.com Git - pve-manager.git/blob - www/manager6/ha/Status.js
update shipped appliance info index
[pve-manager.git] / www / manager6 / ha / Status.js
1 Ext.define('PVE.ha.Status', {
2 extend: 'Ext.panel.Panel',
3 alias: 'widget.pveHAStatus',
4
5 onlineHelp: 'chapter_ha_manager',
6 layout: {
7 type: 'vbox',
8 align: 'stretch',
9 },
10
11 initComponent: function() {
12 var me = this;
13
14 me.rstore = Ext.create('Proxmox.data.ObjectStore', {
15 interval: me.interval,
16 model: 'pve-ha-status',
17 storeid: 'pve-store-' + ++Ext.idSeed,
18 groupField: 'type',
19 proxy: {
20 type: 'proxmox',
21 url: '/api2/json/cluster/ha/status/current',
22 },
23 });
24
25 me.items = [{
26 xtype: 'pveHAStatusView',
27 title: gettext('Status'),
28 rstore: me.rstore,
29 border: 0,
30 collapsible: true,
31 padding: '0 0 20 0',
32 }, {
33 xtype: 'pveHAResourcesView',
34 flex: 1,
35 collapsible: true,
36 title: gettext('Resources'),
37 border: 0,
38 rstore: me.rstore,
39 }];
40
41 me.callParent();
42 me.on('activate', me.rstore.startUpdate);
43 },
44 });