[#13230] Show default syncing interval
This commit is contained in:
parent
c40094f2f9
commit
7a964fde29
|
@ -21,7 +21,9 @@
|
|||
:on-press #(re-frame/dispatch [:multiaccounts.ui/default-sync-period-switched id])}])
|
||||
|
||||
(views/defview default-sync-period-settings []
|
||||
(views/letsubs [{:keys [default-sync-period]} [:multiaccount]]
|
||||
(views/letsubs [{:keys [default-sync-period]
|
||||
:or {default-sync-period constants/one-day}}
|
||||
[:multiaccount]]
|
||||
[react/view {:margin-top 8}
|
||||
(when config/two-minutes-syncing?
|
||||
[radio-item constants/two-mins default-sync-period])
|
||||
|
|
|
@ -42,7 +42,9 @@
|
|||
:accessory-text (cond
|
||||
(= default-sync-period constants/two-mins)
|
||||
(i18n/label :t/two-minutes)
|
||||
(= default-sync-period constants/one-day)
|
||||
(or
|
||||
(nil? default-sync-period)
|
||||
(= default-sync-period constants/one-day))
|
||||
(i18n/label :t/one-day)
|
||||
(= default-sync-period constants/three-days)
|
||||
(i18n/label :t/three-days)
|
||||
|
|
Loading…
Reference in New Issue