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:
parent
6de14a55ed
commit
790627b4bf
@ -259,11 +259,6 @@ Ext.onReady(function() {
|
||||
alias: 'widget.prunesimulatorPanel',
|
||||
|
||||
viewModel: {
|
||||
formulas: {
|
||||
calendarHidden: function(get) {
|
||||
return !get('showCalendar.checked');
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
getValues: function() {
|
||||
@ -724,7 +719,7 @@ Ext.onReady(function() {
|
||||
reference: 'weekTable',
|
||||
store: me.pruneStore,
|
||||
bind: {
|
||||
hidden: '{calendarHidden}',
|
||||
hidden: '{!showCalendar.checked}',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user