diff options
-rw-r--r-- | src/config.js | 3 | ||||
-rw-r--r-- | src/features/todos/store.js | 12 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/config.js b/src/config.js index b540334c4..ef3e4f962 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -134,6 +134,7 @@ export const DEFAULT_FEATURES_CONFIG = { | |||
134 | isServiceProxyEnabled: false, | 134 | isServiceProxyEnabled: false, |
135 | isAnnouncementsEnabled: true, | 135 | isAnnouncementsEnabled: true, |
136 | isWorkspaceEnabled: false, | 136 | isWorkspaceEnabled: false, |
137 | isTodosEnabled: true, | ||
137 | }; | 138 | }; |
138 | 139 | ||
139 | export const DEFAULT_WINDOW_OPTIONS = { | 140 | export const DEFAULT_WINDOW_OPTIONS = { |
@@ -170,8 +171,6 @@ export const ALLOWED_PROTOCOLS = [ | |||
170 | 171 | ||
171 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; | 172 | export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; |
172 | 173 | ||
173 | export const DEFAULT_SERVICE_LIMIT = 3; | ||
174 | |||
175 | export const DEFAULT_TODOS_WIDTH = 300; | 174 | export const DEFAULT_TODOS_WIDTH = 300; |
176 | export const TODOS_MIN_WIDTH = 200; | 175 | export const TODOS_MIN_WIDTH = 200; |
177 | export const DEFAULT_TODOS_VISIBLE = true; | 176 | export const DEFAULT_TODOS_VISIBLE = true; |
diff --git a/src/features/todos/store.js b/src/features/todos/store.js index abaec677f..f283c1e59 100644 --- a/src/features/todos/store.js +++ b/src/features/todos/store.js | |||
@@ -122,12 +122,6 @@ export default class TodoStore extends FeatureStore { | |||
122 | this._registerReactions(this._allReactions); | 122 | this._registerReactions(this._allReactions); |
123 | 123 | ||
124 | this.isFeatureActive = true; | 124 | this.isFeatureActive = true; |
125 | |||
126 | if (this.settings.isFeatureEnabledByUser === undefined) { | ||
127 | this._updateSettings({ | ||
128 | isFeatureEnabledByUser: DEFAULT_IS_FEATURE_ENABLED_BY_USER, | ||
129 | }); | ||
130 | } | ||
131 | } | 125 | } |
132 | 126 | ||
133 | @action stop() { | 127 | @action stop() { |
@@ -265,6 +259,12 @@ export default class TodoStore extends FeatureStore { | |||
265 | _firstLaunchReaction = () => { | 259 | _firstLaunchReaction = () => { |
266 | const { stats } = this.stores.settings.all; | 260 | const { stats } = this.stores.settings.all; |
267 | 261 | ||
262 | if (this.settings.isFeatureEnabledByUser === undefined) { | ||
263 | this._updateSettings({ | ||
264 | isFeatureEnabledByUser: DEFAULT_IS_FEATURE_ENABLED_BY_USER, | ||
265 | }); | ||
266 | } | ||
267 | |||
268 | // Hide todos layer on first app start but show on second | 268 | // Hide todos layer on first app start but show on second |
269 | if (stats.appStarts <= 1) { | 269 | if (stats.appStarts <= 1) { |
270 | this._updateSettings({ | 270 | this._updateSettings({ |