diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-10-30 10:33:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 10:33:52 +0100 |
commit | bc64a9733cc26698931f4bcca4bceff072ce60e7 (patch) | |
tree | def65fbcf4e4cd6539325fb3d61aa8799663f938 /src/stores/ServicesStore.js | |
parent | Merge pull request #157 from RainoBoy97/master (diff) | |
parent | Reset setting status when navigating away from services screen (diff) | |
download | ferdium-app-bc64a9733cc26698931f4bcca4bceff072ce60e7.tar.gz ferdium-app-bc64a9733cc26698931f4bcca4bceff072ce60e7.tar.zst ferdium-app-bc64a9733cc26698931f4bcca4bceff072ce60e7.zip |
Merge pull request #169 from dannyqiu/fix-service-status
Reset status when navigating away from services screen
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r-- | src/stores/ServicesStore.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 4510146e0..64e6bb42b 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -41,6 +41,7 @@ export default class ServicesStore extends Store { | |||
41 | this.actions.service.openWindow.listen(this._openWindow.bind(this)); | 41 | this.actions.service.openWindow.listen(this._openWindow.bind(this)); |
42 | this.actions.service.filter.listen(this._filter.bind(this)); | 42 | this.actions.service.filter.listen(this._filter.bind(this)); |
43 | this.actions.service.resetFilter.listen(this._resetFilter.bind(this)); | 43 | this.actions.service.resetFilter.listen(this._resetFilter.bind(this)); |
44 | this.actions.service.resetStatus.listen(this._resetStatus.bind(this)); | ||
44 | this.actions.service.reload.listen(this._reload.bind(this)); | 45 | this.actions.service.reload.listen(this._reload.bind(this)); |
45 | this.actions.service.reloadActive.listen(this._reloadActive.bind(this)); | 46 | this.actions.service.reloadActive.listen(this._reloadActive.bind(this)); |
46 | this.actions.service.reloadAll.listen(this._reloadAll.bind(this)); | 47 | this.actions.service.reloadAll.listen(this._reloadAll.bind(this)); |
@@ -338,6 +339,10 @@ export default class ServicesStore extends Store { | |||
338 | this.filterNeedle = null; | 339 | this.filterNeedle = null; |
339 | } | 340 | } |
340 | 341 | ||
342 | @action _resetStatus() { | ||
343 | this.actionStatus = []; | ||
344 | } | ||
345 | |||
341 | @action _reload({ serviceId }) { | 346 | @action _reload({ serviceId }) { |
342 | const service = this.one(serviceId); | 347 | const service = this.one(serviceId); |
343 | service.resetMessageCount(); | 348 | service.resetMessageCount(); |