diff options
author | 2019-09-05 16:39:53 +0200 | |
---|---|---|
committer | 2019-09-05 16:39:53 +0200 | |
commit | ad2a3f3f87252711a9f3cc13916acf0fdff2949e (patch) | |
tree | 21f43223a2166033f2e309784f5c8fd9a7b1de33 /src/features/todos/store.js | |
parent | Remove news item on CTA clicks (diff) | |
download | ferdium-app-ad2a3f3f87252711a9f3cc13916acf0fdff2949e.tar.gz ferdium-app-ad2a3f3f87252711a9f3cc13916acf0fdff2949e.tar.zst ferdium-app-ad2a3f3f87252711a9f3cc13916acf0fdff2949e.zip |
Fix delay app ux in combination with announcements
Diffstat (limited to 'src/features/todos/store.js')
-rw-r--r-- | src/features/todos/store.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index aebe0dcbe..ea05077ab 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -29,10 +29,13 @@ export default class TodoStore extends FeatureStore { | |||
29 | return width < TODOS_MIN_WIDTH ? TODOS_MIN_WIDTH : width; | 29 | return width < TODOS_MIN_WIDTH ? TODOS_MIN_WIDTH : width; |
30 | } | 30 | } |
31 | 31 | ||
32 | @computed get isTodosPanelForceHidden() { | ||
33 | const { isAnnouncementShown } = this.stores.announcements; | ||
34 | return delayAppState.isDelayAppScreenVisible || isAnnouncementShown; | ||
35 | } | ||
36 | |||
32 | @computed get isTodosPanelVisible() { | 37 | @computed get isTodosPanelVisible() { |
33 | if (delayAppState.isDelayAppScreenVisible) return false; | ||
34 | if (this.settings.isTodosPanelVisible === undefined) return DEFAULT_TODOS_VISIBLE; | 38 | if (this.settings.isTodosPanelVisible === undefined) return DEFAULT_TODOS_VISIBLE; |
35 | |||
36 | return this.settings.isTodosPanelVisible; | 39 | return this.settings.isTodosPanelVisible; |
37 | } | 40 | } |
38 | 41 | ||