[pve-devel] [PATCH manager] ui: panel/GuestStatusView: readd necessary xtypes

Dominik Csapak d.csapak at proxmox.com
Thu Jun 24 17:11:39 CEST 2021

currently, cbind only applies properties on objects which have
an 'xtype' property.

commit 38e6634a8fe8c11ec23e555ce55bc1972ccb5ea1
removed those, thinking the xtype in the 'defaults' is enough

add them back, noting that cbind does need it, to prevent removal

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
we should probably cherry-pick it into stable-6 as well

 www/manager6/panel/GuestStatusView.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/www/manager6/panel/GuestStatusView.js b/www/manager6/panel/GuestStatusView.js
index 8db1f492..d59476c1 100644
--- a/www/manager6/panel/GuestStatusView.js
+++ b/www/manager6/panel/GuestStatusView.js
@@ -53,6 +53,7 @@ Ext.define('PVE.panel.GuestStatusView', {
 	    itemId: 'node',
 	    iconCls: 'fa fa-building fa-fw',
 	    title: gettext('Node'),
+	    xtype: 'pmxInfoWidget', // necessary for cbind to apply
 	    cbind: {
 		text: '{pveSelNode.data.node}',
@@ -86,6 +87,7 @@ Ext.define('PVE.panel.GuestStatusView', {
 	    title: gettext('SWAP usage'),
 	    valueField: 'swap',
 	    maxField: 'maxswap',
+	    xtype: 'pmxInfoWidget', // necessary for cbind to apply
 	    cbind: {
 		hidden: '{isQemu}',
 		disabled: '{isQemu}',

More information about the pve-devel mailing list