prune sim: avoid unnecessary viewmodel formula

we set a reference on the checkbox, so we get this for free

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-07 13:33:07 +01:00
parent 6de14a55ed
commit 790627b4bf

View File

@ -259,11 +259,6 @@ Ext.onReady(function() {
alias: 'widget.prunesimulatorPanel', alias: 'widget.prunesimulatorPanel',
viewModel: { viewModel: {
formulas: {
calendarHidden: function(get) {
return !get('showCalendar.checked');
},
},
}, },
getValues: function() { getValues: function() {
@ -724,7 +719,7 @@ Ext.onReady(function() {
reference: 'weekTable', reference: 'weekTable',
store: me.pruneStore, store: me.pruneStore,
bind: { bind: {
hidden: '{calendarHidden}', hidden: '{!showCalendar.checked}',
}, },
}, },
]; ];