diff options
author | 2019-04-16 16:26:50 +0200 | |
---|---|---|
committer | 2019-04-16 16:26:50 +0200 | |
commit | 8f0a4518ea896e2c55e9a52306203ea4840e055b (patch) | |
tree | 086500954d54231eb3dc5841e55166f9d525b5af /src/lib | |
parent | Run tests (diff) | |
download | ferdium-app-8f0a4518ea896e2c55e9a52306203ea4840e055b.tar.gz ferdium-app-8f0a4518ea896e2c55e9a52306203ea4840e055b.tar.zst ferdium-app-8f0a4518ea896e2c55e9a52306203ea4840e055b.zip |
hide news menu item when there are no news
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Menu.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Menu.js b/src/lib/Menu.js index 6bea67860..da2540274 100644 --- a/src/lib/Menu.js +++ b/src/lib/Menu.js | |||
@@ -7,6 +7,7 @@ import { GA_CATEGORY_WORKSPACES, workspaceStore } from '../features/workspaces/i | |||
7 | import { workspaceActions } from '../features/workspaces/actions'; | 7 | import { workspaceActions } from '../features/workspaces/actions'; |
8 | import { gaEvent } from './analytics'; | 8 | import { gaEvent } from './analytics'; |
9 | import { announcementActions } from '../features/announcements/actions'; | 9 | import { announcementActions } from '../features/announcements/actions'; |
10 | import { announcementsStore } from '../features/announcements'; | ||
10 | 11 | ||
11 | const { app, Menu, dialog } = remote; | 12 | const { app, Menu, dialog } = remote; |
12 | 13 | ||
@@ -357,6 +358,7 @@ const _templateFactory = intl => [ | |||
357 | click: () => { | 358 | click: () => { |
358 | announcementActions.show(); | 359 | announcementActions.show(); |
359 | }, | 360 | }, |
361 | visible: window.franz.stores.user.isLoggedIn && announcementsStore.areNewsAvailable, | ||
360 | }, | 362 | }, |
361 | { | 363 | { |
362 | type: 'separator', | 364 | type: 'separator', |