diff options
author | vantezzen <properly@protonmail.com> | 2019-09-07 15:50:23 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-09-07 15:50:23 +0200 |
commit | e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e (patch) | |
tree | b8314e4155503b135dcb07e8b4a0e847e25c19cf /src/features/announcements/store.js | |
parent | Update CHANGELOG.md (diff) | |
parent | Update CHANGELOG.md (diff) | |
download | ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.tar.gz ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.tar.zst ferdium-app-e7a74514c1e7c3833dfdcf5900cb87f9e6e8354e.zip |
Merge branch 'master' of https://github.com/meetfranz/franz into franz-5.3.0
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; |