diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/FeaturesStore.js | 2 | ||||
-rw-r--r-- | src/stores/ServicesStore.js | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index 8fe576813..dcda021c1 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js | |||
@@ -14,6 +14,7 @@ import serviceProxy from '../features/serviceProxy'; | |||
14 | import basicAuth from '../features/basicAuth'; | 14 | import basicAuth from '../features/basicAuth'; |
15 | import workspaces from '../features/workspaces'; | 15 | import workspaces from '../features/workspaces'; |
16 | import shareFranz from '../features/shareFranz'; | 16 | import shareFranz from '../features/shareFranz'; |
17 | import announcements from '../features/announcements'; | ||
17 | 18 | ||
18 | import { DEFAULT_FEATURES_CONFIG } from '../config'; | 19 | import { DEFAULT_FEATURES_CONFIG } from '../config'; |
19 | 20 | ||
@@ -71,5 +72,6 @@ export default class FeaturesStore extends Store { | |||
71 | basicAuth(this.stores, this.actions); | 72 | basicAuth(this.stores, this.actions); |
72 | workspaces(this.stores, this.actions); | 73 | workspaces(this.stores, this.actions); |
73 | shareFranz(this.stores, this.actions); | 74 | shareFranz(this.stores, this.actions); |
75 | announcements(this.stores, this.actions); | ||
74 | } | 76 | } |
75 | } | 77 | } |
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 0ec6bf550..d04fdd0c5 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -36,6 +36,7 @@ export default class ServicesStore extends Store { | |||
36 | 36 | ||
37 | // Register action handlers | 37 | // Register action handlers |
38 | this.actions.service.setActive.listen(this._setActive.bind(this)); | 38 | this.actions.service.setActive.listen(this._setActive.bind(this)); |
39 | this.actions.service.blurActive.listen(this._blurActive.bind(this)); | ||
39 | this.actions.service.setActiveNext.listen(this._setActiveNext.bind(this)); | 40 | this.actions.service.setActiveNext.listen(this._setActiveNext.bind(this)); |
40 | this.actions.service.setActivePrev.listen(this._setActivePrev.bind(this)); | 41 | this.actions.service.setActivePrev.listen(this._setActivePrev.bind(this)); |
41 | this.actions.service.showAddServiceInterface.listen(this._showAddServiceInterface.bind(this)); | 42 | this.actions.service.showAddServiceInterface.listen(this._showAddServiceInterface.bind(this)); |
@@ -301,6 +302,11 @@ export default class ServicesStore extends Store { | |||
301 | this._focusActiveService(); | 302 | this._focusActiveService(); |
302 | } | 303 | } |
303 | 304 | ||
305 | @action _blurActive() { | ||
306 | if (!this.active) return; | ||
307 | this.active.isActive = false; | ||
308 | } | ||
309 | |||
304 | @action _setActiveNext() { | 310 | @action _setActiveNext() { |
305 | const nextIndex = this._wrapIndex(this.allDisplayed.findIndex(service => service.isActive), 1, this.allDisplayed.length); | 311 | const nextIndex = this._wrapIndex(this.allDisplayed.findIndex(service => service.isActive), 1, this.allDisplayed.length); |
306 | 312 | ||