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.csa...@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}',
-- 
2.20.1



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to