diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-10-30 10:47:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-30 10:47:50 +0100 |
commit | 138feede365a074dff4da238ea1313e89bfb1c5d (patch) | |
tree | 90f929642daa7969a0bdac7f41172fbb086a3f4f /src/stores/ServicesStore.js | |
parent | Add onNotify event to let recipes update/change notifications before send them. (diff) | |
parent | Merge pull request #155 from dannyqiu/fix-theme-change (diff) | |
download | ferdium-app-138feede365a074dff4da238ea1313e89bfb1c5d.tar.gz ferdium-app-138feede365a074dff4da238ea1313e89bfb1c5d.tar.zst ferdium-app-138feede365a074dff4da238ea1313e89bfb1c5d.zip |
Merge branch 'develop' into notificationTitleFix
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 7e797ce55..2ddeeffd4 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)); |
@@ -341,6 +342,10 @@ export default class ServicesStore extends Store { | |||
341 | this.filterNeedle = null; | 342 | this.filterNeedle = null; |
342 | } | 343 | } |
343 | 344 | ||
345 | @action _resetStatus() { | ||
346 | this.actionStatus = []; | ||
347 | } | ||
348 | |||
344 | @action _reload({ serviceId }) { | 349 | @action _reload({ serviceId }) { |
345 | const service = this.one(serviceId); | 350 | const service = this.one(serviceId); |
346 | service.resetMessageCount(); | 351 | service.resetMessageCount(); |