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/announcements/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/announcements/store.js')
-rw-r--r-- | src/features/announcements/store.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/features/announcements/store.js b/src/features/announcements/store.js index de7ed2596..d58afbc8e 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -63,6 +63,11 @@ export class AnnouncementsStore extends FeatureStore { | |||
63 | return this.stores.settings.stats.appStarts <= 1; | 63 | return this.stores.settings.stats.appStarts <= 1; |
64 | } | 64 | } |
65 | 65 | ||
66 | @computed get isAnnouncementShown() { | ||
67 | const { router } = this.stores; | ||
68 | return router.location.pathname.includes('/announcements'); | ||
69 | } | ||
70 | |||
66 | async start(stores, actions) { | 71 | async start(stores, actions) { |
67 | debug('AnnouncementsStore::start'); | 72 | debug('AnnouncementsStore::start'); |
68 | this.stores = stores; | 73 | this.stores = stores; |