diff options
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 2884fb06f..91348029f 100644 --- a/src/features/announcements/store.js +++ b/src/features/announcements/store.js | |||
@@ -62,6 +62,11 @@ export class AnnouncementsStore extends FeatureStore { | |||
62 | return this.stores.settings.stats.appStarts <= 1; | 62 | return this.stores.settings.stats.appStarts <= 1; |
63 | } | 63 | } |
64 | 64 | ||
65 | @computed get isAnnouncementShown() { | ||
66 | const { router } = this.stores; | ||
67 | return router.location.pathname.includes('/announcements'); | ||
68 | } | ||
69 | |||
65 | async start(stores, actions) { | 70 | async start(stores, actions) { |
66 | debug('AnnouncementsStore::start'); | 71 | debug('AnnouncementsStore::start'); |
67 | this.stores = stores; | 72 | this.stores = stores; |