diff options
author | 2021-09-04 17:03:53 +0200 | |
---|---|---|
committer | 2021-09-04 17:03:53 +0200 | |
commit | f39cbe7d803245702885b308ab1cee4551aea9a1 (patch) | |
tree | 56d2e5dbe6242bb64b03ba5028b8bac39ea0c7ed /src/stores/FeaturesStore.js | |
parent | Use namespaces when pulling docker base images since this is reqd for podman (diff) | |
download | ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.tar.gz ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.tar.zst ferdium-app-f39cbe7d803245702885b308ab1cee4551aea9a1.zip |
chore: remove what's new functionality (#1864)
Diffstat (limited to 'src/stores/FeaturesStore.js')
-rw-r--r-- | src/stores/FeaturesStore.js | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/stores/FeaturesStore.js b/src/stores/FeaturesStore.js index 0dff2fda2..1d50dd714 100644 --- a/src/stores/FeaturesStore.js +++ b/src/stores/FeaturesStore.js | |||
@@ -1,8 +1,4 @@ | |||
1 | import { | 1 | import { computed, observable, runInAction } from 'mobx'; |
2 | computed, | ||
3 | observable, | ||
4 | runInAction, | ||
5 | } from 'mobx'; | ||
6 | 2 | ||
7 | import Store from './lib/Store'; | 3 | import Store from './lib/Store'; |
8 | import CachedRequest from './lib/CachedRequest'; | 4 | import CachedRequest from './lib/CachedRequest'; |
@@ -13,7 +9,6 @@ import workspaces from '../features/workspaces'; | |||
13 | import quickSwitch from '../features/quickSwitch'; | 9 | import quickSwitch from '../features/quickSwitch'; |
14 | import nightlyBuilds from '../features/nightlyBuilds'; | 10 | import nightlyBuilds from '../features/nightlyBuilds'; |
15 | import publishDebugInfo from '../features/publishDebugInfo'; | 11 | import publishDebugInfo from '../features/publishDebugInfo'; |
16 | import announcements from '../features/announcements'; | ||
17 | import settingsWS from '../features/settingsWS'; | 12 | import settingsWS from '../features/settingsWS'; |
18 | import communityRecipes from '../features/communityRecipes'; | 13 | import communityRecipes from '../features/communityRecipes'; |
19 | import todos from '../features/todos'; | 14 | import todos from '../features/todos'; |
@@ -22,11 +17,17 @@ import appearance from '../features/appearance'; | |||
22 | import { DEFAULT_FEATURES_CONFIG } from '../config'; | 17 | import { DEFAULT_FEATURES_CONFIG } from '../config'; |
23 | 18 | ||
24 | export default class FeaturesStore extends Store { | 19 | export default class FeaturesStore extends Store { |
25 | @observable defaultFeaturesRequest = new CachedRequest(this.api.features, 'default'); | 20 | @observable defaultFeaturesRequest = new CachedRequest( |
21 | this.api.features, | ||
22 | 'default', | ||
23 | ); | ||
26 | 24 | ||
27 | @observable featuresRequest = new CachedRequest(this.api.features, 'features'); | 25 | @observable featuresRequest = new CachedRequest( |
26 | this.api.features, | ||
27 | 'features', | ||
28 | ); | ||
28 | 29 | ||
29 | @observable features = ({ ...DEFAULT_FEATURES_CONFIG }); | 30 | @observable features = { ...DEFAULT_FEATURES_CONFIG }; |
30 | 31 | ||
31 | async setup() { | 32 | async setup() { |
32 | this.registerReactions([ | 33 | this.registerReactions([ |
@@ -39,7 +40,9 @@ export default class FeaturesStore extends Store { | |||
39 | } | 40 | } |
40 | 41 | ||
41 | @computed get anonymousFeatures() { | 42 | @computed get anonymousFeatures() { |
42 | return this.defaultFeaturesRequest.execute().result || DEFAULT_FEATURES_CONFIG; | 43 | return ( |
44 | this.defaultFeaturesRequest.execute().result || DEFAULT_FEATURES_CONFIG | ||
45 | ); | ||
43 | } | 46 | } |
44 | 47 | ||
45 | _updateFeatures = () => { | 48 | _updateFeatures = () => { |
@@ -72,7 +75,6 @@ export default class FeaturesStore extends Store { | |||
72 | quickSwitch(this.stores, this.actions); | 75 | quickSwitch(this.stores, this.actions); |
73 | nightlyBuilds(this.stores, this.actions); | 76 | nightlyBuilds(this.stores, this.actions); |
74 | publishDebugInfo(this.stores, this.actions); | 77 | publishDebugInfo(this.stores, this.actions); |
75 | announcements(this.stores, this.actions); | ||
76 | settingsWS(this.stores, this.actions); | 78 | settingsWS(this.stores, this.actions); |
77 | communityRecipes(this.stores, this.actions); | 79 | communityRecipes(this.stores, this.actions); |
78 | todos(this.stores, this.actions); | 80 | todos(this.stores, this.actions); |