aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Stefan <stefan@adlk.io>2019-03-08 17:36:13 +0100
committerLibravatar Stefan <stefan@adlk.io>2019-03-08 17:36:13 +0100
commitd6c7293d602f29f3d7005aeb358861a8c2399180 (patch)
tree43b72dcef9493cac97df99d5ac2f1fc9a1b6e9c9 /src/stores
parentAdd notification debug events (diff)
parentFix/service webview unmounting (#1328) (diff)
downloadferdium-app-d6c7293d602f29f3d7005aeb358861a8c2399180.tar.gz
ferdium-app-d6c7293d602f29f3d7005aeb358861a8c2399180.tar.zst
ferdium-app-d6c7293d602f29f3d7005aeb358861a8c2399180.zip
Merge branch 'develop' of https://github.com/meetfranz/franz into develop
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/ServicesStore.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index c63bef196..69e616f0c 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -44,6 +44,7 @@ export default class ServicesStore extends Store {
44 this.actions.service.deleteService.listen(this._deleteService.bind(this)); 44 this.actions.service.deleteService.listen(this._deleteService.bind(this));
45 this.actions.service.clearCache.listen(this._clearCache.bind(this)); 45 this.actions.service.clearCache.listen(this._clearCache.bind(this));
46 this.actions.service.setWebviewReference.listen(this._setWebviewReference.bind(this)); 46 this.actions.service.setWebviewReference.listen(this._setWebviewReference.bind(this));
47 this.actions.service.detachService.listen(this._detachService.bind(this));
47 this.actions.service.focusService.listen(this._focusService.bind(this)); 48 this.actions.service.focusService.listen(this._focusService.bind(this));
48 this.actions.service.focusActiveService.listen(this._focusActiveService.bind(this)); 49 this.actions.service.focusActiveService.listen(this._focusActiveService.bind(this));
49 this.actions.service.toggleService.listen(this._toggleService.bind(this)); 50 this.actions.service.toggleService.listen(this._toggleService.bind(this));
@@ -341,6 +342,11 @@ export default class ServicesStore extends Store {
341 service.isAttached = true; 342 service.isAttached = true;
342 } 343 }
343 344
345 @action _detachService({ service }) {
346 service.webview = null;
347 service.isAttached = false;
348 }
349
344 @action _focusService({ serviceId }) { 350 @action _focusService({ serviceId }) {
345 const service = this.one(serviceId); 351 const service = this.one(serviceId);
346 352