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',
|
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}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user