mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-06 04:32:29 +00:00

since the whole panel was scrollable instead of the individual ones, selecting a ha service triggered the 'jump to focus' which made it hard (if not impossible) to reach the edit/remove buttons for it this patch reorganizes the panels in such a way that the status panel is fixed height, and the content of the resource panel is scrollable (always showing the edit/remove buttons) to avoid not seeing the resources when one has a large number of nodes, we make the individual panels collapsible Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
45 lines
917 B
JavaScript
45 lines
917 B
JavaScript
Ext.define('PVE.ha.Status', {
|
|
extend: 'Ext.panel.Panel',
|
|
alias: 'widget.pveHAStatus',
|
|
|
|
onlineHelp: 'chapter_ha_manager',
|
|
layout: {
|
|
type: 'vbox',
|
|
align: 'stretch'
|
|
},
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
me.rstore = Ext.create('Proxmox.data.ObjectStore', {
|
|
interval: me.interval,
|
|
model: 'pve-ha-status',
|
|
storeid: 'pve-store-' + (++Ext.idSeed),
|
|
groupField: 'type',
|
|
proxy: {
|
|
type: 'proxmox',
|
|
url: '/api2/json/cluster/ha/status/current'
|
|
}
|
|
});
|
|
|
|
me.items = [{
|
|
xtype: 'pveHAStatusView',
|
|
title: gettext('Status'),
|
|
rstore: me.rstore,
|
|
border: 0,
|
|
collapsible: true,
|
|
padding: '0 0 20 0'
|
|
},{
|
|
xtype: 'pveHAResourcesView',
|
|
flex: 1,
|
|
collapsible: true,
|
|
title: gettext('Resources'),
|
|
border: 0,
|
|
rstore: me.rstore
|
|
}];
|
|
|
|
me.callParent();
|
|
me.on('activate', me.rstore.startUpdate);
|
|
}
|
|
});
|