Skip to content

Commit

Permalink
Add setting to disable offline notification
Browse files Browse the repository at this point in the history
Alleviates #3300
  • Loading branch information
jacobmischka committed Apr 19, 2017
1 parent 6d2c2b2 commit 39d69e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ const notifications = [
UnstableChannelNotification,
DevModeNotification,
DisabledMailRulesNotification,
OfflineNotification,
UpdateNotification,
]

if (NylasEnv.config.get('core.workspace.showOfflineNotification')) {
notifications.push(OfflineNotification)
}

export function activate() {
ComponentRegistry.register(ActivitySidebar, {location: WorkspaceStore.Location.RootSidebar});
ComponentRegistry.register(NotifWrapper, {location: WorkspaceStore.Location.RootSidebar});
Expand Down
5 changes: 5 additions & 0 deletions packages/client-app/src/config-schema.es6
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export default {
'default': false,
'title': "Use 24-hour clock",
},
showOfflineNotification: {
'type': 'boolean',
'default': true,
'title': "Show offline notification popup",
},
interfaceZoom: {
'title': "Override standard interface scaling",
'type': 'number',
Expand Down

0 comments on commit 39d69e2

Please sign in to comment.