aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-02 12:05:17 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-02 06:44:58 +0000
commit0530e37e6350be0cfc4b2d9d0cc796affafe3558 (patch)
tree6a8c189f18368af59bcaa6deb6d9bcc7a2a94aaa /src
parentMinor visual refactoring to hide double separator. [skip ci] (diff)
downloadferdium-app-0530e37e6350be0cfc4b2d9d0cc796affafe3558.tar.gz
ferdium-app-0530e37e6350be0cfc4b2d9d0cc796affafe3558.tar.zst
ferdium-app-0530e37e6350be0cfc4b2d9d0cc796affafe3558.zip
Fixed #1717: Turned on ToDo feature.
Diffstat (limited to 'src')
-rw-r--r--src/config.js3
-rw-r--r--src/features/todos/store.js12
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
139export const DEFAULT_WINDOW_OPTIONS = { 140export const DEFAULT_WINDOW_OPTIONS = {
@@ -170,8 +171,6 @@ export const ALLOWED_PROTOCOLS = [
170 171
171export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false; 172export const DEFAULT_SETTING_KEEP_ALL_WORKSPACES_LOADED = false;
172 173
173export const DEFAULT_SERVICE_LIMIT = 3;
174
175export const DEFAULT_TODOS_WIDTH = 300; 174export const DEFAULT_TODOS_WIDTH = 300;
176export const TODOS_MIN_WIDTH = 200; 175export const TODOS_MIN_WIDTH = 200;
177export const DEFAULT_TODOS_VISIBLE = true; 176export 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({