diff options
author | 2017-10-29 18:52:54 -0400 | |
---|---|---|
committer | 2017-10-29 18:52:54 -0400 | |
commit | 032bab130a3f6145b0351760bea6e04e9d1e87bc (patch) | |
tree | def65fbcf4e4cd6539325fb3d61aa8799663f938 /src/stores | |
parent | Merge pull request #157 from RainoBoy97/master (diff) | |
download | ferdium-app-032bab130a3f6145b0351760bea6e04e9d1e87bc.tar.gz ferdium-app-032bab130a3f6145b0351760bea6e04e9d1e87bc.tar.zst ferdium-app-032bab130a3f6145b0351760bea6e04e9d1e87bc.zip |
Reset setting status when navigating away from services screen
Diffstat (limited to 'src/stores')
-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(); |