aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/AppStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/AppStore.js')
-rw-r--r--src/stores/AppStore.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index 6f156a96d..dd4642d70 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -38,12 +38,15 @@ export default class AppStore extends Store {
38 }; 38 };
39 39
40 @observable healthCheckRequest = new Request(this.api.app, 'health'); 40 @observable healthCheckRequest = new Request(this.api.app, 'health');
41
41 @observable getAppCacheSizeRequest = new Request(this.api.local, 'getAppCacheSize'); 42 @observable getAppCacheSizeRequest = new Request(this.api.local, 'getAppCacheSize');
43
42 @observable clearAppCacheRequest = new Request(this.api.local, 'clearAppCache'); 44 @observable clearAppCacheRequest = new Request(this.api.local, 'clearAppCache');
43 45
44 @observable autoLaunchOnStart = true; 46 @observable autoLaunchOnStart = true;
45 47
46 @observable isOnline = navigator.onLine; 48 @observable isOnline = navigator.onLine;
49
47 @observable timeOfflineStart; 50 @observable timeOfflineStart;
48 51
49 @observable updateStatus = null; 52 @observable updateStatus = null;
@@ -150,19 +153,22 @@ export default class AppStore extends Store {
150 key( 153 key(
151 '⌘+pagedown, ctrl+pagedown, ⌘+alt+right, ctrl+tab', () => { 154 '⌘+pagedown, ctrl+pagedown, ⌘+alt+right, ctrl+tab', () => {
152 this.actions.service.setActiveNext(); 155 this.actions.service.setActiveNext();
153 }); 156 },
157 );
154 158
155 // Set active the prev service 159 // Set active the prev service
156 key( 160 key(
157 '⌘+pageup, ctrl+pageup, ⌘+alt+left, ctrl+shift+tab', () => { 161 '⌘+pageup, ctrl+pageup, ⌘+alt+left, ctrl+shift+tab', () => {
158 this.actions.service.setActivePrev(); 162 this.actions.service.setActivePrev();
159 }); 163 },
164 );
160 165
161 // Global Mute 166 // Global Mute
162 key( 167 key(
163 '⌘+shift+m ctrl+shift+m', () => { 168 '⌘+shift+m ctrl+shift+m', () => {
164 this.actions.app.toggleMuteApp(); 169 this.actions.app.toggleMuteApp();
165 }); 170 },
171 );
166 172
167 this.locale = this._getDefaultLocale(); 173 this.locale = this._getDefaultLocale();
168 174
@@ -182,7 +188,9 @@ export default class AppStore extends Store {
182 } 188 }
183 189
184 // Actions 190 // Actions
185 @action _notify({ title, options, notificationId, serviceId = null }) { 191 @action _notify({
192 title, options, notificationId, serviceId = null,
193 }) {
186 if (this.stores.settings.all.app.isAppMuted) return; 194 if (this.stores.settings.all.app.isAppMuted) return;
187 195
188 const notification = new window.Notification(title, options); 196 const notification = new window.Notification(title, options);