File tree 2 files changed +9
-1
lines changed
internal_packages/notifications/lib
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,13 @@ const notifications = [
18
18
UnstableChannelNotification ,
19
19
DevModeNotification ,
20
20
DisabledMailRulesNotification ,
21
- OfflineNotification ,
22
21
UpdateNotification ,
23
22
]
24
23
24
+ if ( NylasEnv . config . get ( 'core.workspace.showOfflineNotification' ) ) {
25
+ notifications . push ( OfflineNotification )
26
+ }
27
+
25
28
export function activate ( ) {
26
29
ComponentRegistry . register ( ActivitySidebar , { location : WorkspaceStore . Location . RootSidebar } ) ;
27
30
ComponentRegistry . register ( NotifWrapper , { location : WorkspaceStore . Location . RootSidebar } ) ;
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ export default {
31
31
'default' : false ,
32
32
'title' : "Use 24-hour clock" ,
33
33
} ,
34
+ showOfflineNotification : {
35
+ 'type' : 'boolean' ,
36
+ 'default' : true ,
37
+ 'title' : "Show offline notification popup" ,
38
+ } ,
34
39
interfaceZoom : {
35
40
'title' : "Override standard interface scaling" ,
36
41
'type' : 'number' ,
You can’t perform that action at this time.
0 commit comments