1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #123 - Aggregate runtime settings can get into an invalid state

I forgot to update the state in one place.
This commit is contained in:
Jon Ziebell 2019-06-04 21:34:33 -04:00
parent b22793c088
commit 729022e85a

View File

@ -80,6 +80,7 @@ beestat.component.modal.aggregate_runtime_custom.prototype.decorate_contents_ =
time_count
.set_value(self.state_.aggregate_runtime_time_count || '1')
.enable();
time_count.dispatchEvent('blur');
}
}
@ -176,9 +177,9 @@ beestat.component.modal.aggregate_runtime_custom.prototype.get_buttons_ = functi
beestat.setting(
{
'aggregate_runtime_time_count':
self.state_.aggregate_runtime_time_period === 'all' ?
0 :
self.state_.aggregate_runtime_time_count,
self.state_.aggregate_runtime_time_period === 'all'
? 0
: self.state_.aggregate_runtime_time_count,
'aggregate_runtime_time_period':
self.state_.aggregate_runtime_time_period,
'aggregate_runtime_group_by':