From a090fe1d1def2d1e564d2e2648404e62fcaba8a0 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 17 Nov 2020 19:21:14 +0100 Subject: [PATCH] pbs: followup: actually set cbind for all elements we cannot have xtype nor cbind in the defaults, as moving xtype there breaks our cbind "when to stop descendant+apply" heuristic and cbind cannot be moved there as it'd be only copied over by initComponent and that happens later than the cbind apply step. Signed-off-by: Thomas Lamprecht --- js/PBSConfig.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/js/PBSConfig.js b/js/PBSConfig.js index 06e3dc7..8e07997 100644 --- a/js/PBSConfig.js +++ b/js/PBSConfig.js @@ -118,22 +118,19 @@ Ext.define('PMG.PBSInputPanel', { xtype: 'proxmoxintegerfield', fieldLabel: gettext('Keep Last'), name: 'keep-last', - cbind: { - deleteEmpty: (get) => !get('isCreate'), - }, + cbind: { deleteEmpty: '{!isCreate}' }, }, { xtype: 'proxmoxintegerfield', fieldLabel: gettext('Keep Daily'), name: 'keep-daily', - cbind: { - deleteEmpty: (get) => !get('isCreate'), - }, + cbind: { deleteEmpty: '{!isCreate}' }, }, { xtype: 'proxmoxintegerfield', fieldLabel: gettext('Keep Monthly'), name: 'keep-monthly', + cbind: { deleteEmpty: '{!isCreate}' }, }, ], column2: [ @@ -141,16 +138,19 @@ Ext.define('PMG.PBSInputPanel', { xtype: 'proxmoxintegerfield', fieldLabel: gettext('Keep Hourly'), name: 'keep-hourly', + cbind: { deleteEmpty: '{!isCreate}' }, }, { xtype: 'proxmoxintegerfield', fieldLabel: gettext('Keep Weekly'), name: 'keep-weekly', + cbind: { deleteEmpty: '{!isCreate}' }, }, { xtype: 'proxmoxintegerfield', fieldLabel: gettext('Keep Yearly'), name: 'keep-yearly', + cbind: { deleteEmpty: '{!isCreate}' }, }, ], },