Skip to content

Commit 39d69e2

Browse files
committed
Add setting to disable offline notification
Alleviates #3300
1 parent 6d2c2b2 commit 39d69e2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/client-app/internal_packages/notifications/lib/main.es6

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ const notifications = [
1818
UnstableChannelNotification,
1919
DevModeNotification,
2020
DisabledMailRulesNotification,
21-
OfflineNotification,
2221
UpdateNotification,
2322
]
2423

24+
if (NylasEnv.config.get('core.workspace.showOfflineNotification')) {
25+
notifications.push(OfflineNotification)
26+
}
27+
2528
export function activate() {
2629
ComponentRegistry.register(ActivitySidebar, {location: WorkspaceStore.Location.RootSidebar});
2730
ComponentRegistry.register(NotifWrapper, {location: WorkspaceStore.Location.RootSidebar});

packages/client-app/src/config-schema.es6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export default {
3131
'default': false,
3232
'title': "Use 24-hour clock",
3333
},
34+
showOfflineNotification: {
35+
'type': 'boolean',
36+
'default': true,
37+
'title': "Show offline notification popup",
38+
},
3439
interfaceZoom: {
3540
'title': "Override standard interface scaling",
3641
'type': 'number',

0 commit comments

Comments
 (0)