aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/store.js
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-09-11 14:17:13 +0200
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-09-11 14:17:13 +0200
commitddab3a88b297fe244971b0d4fb9ff3fca3a8a1fe (patch)
tree4d1df67bd12c0a4f82c483f1c2d4f6c9e20c4281 /src/features/workspaces/store.js
parentUpdate CHANGELOG.md (diff)
downloadferdium-app-ddab3a88b297fe244971b0d4fb9ff3fca3a8a1fe.tar.gz
ferdium-app-ddab3a88b297fe244971b0d4fb9ff3fca3a8a1fe.tar.zst
ferdium-app-ddab3a88b297fe244971b0d4fb9ff3fca3a8a1fe.zip
feat(Workspaces): Setting to keep all workspaces loaded
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r--src/features/workspaces/store.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js
index 4a1f80b4e..7f41cfc88 100644
--- a/src/features/workspaces/store.js
+++ b/src/features/workspaces/store.js
@@ -97,6 +97,7 @@ export default class WorkspacesStore extends FeatureStore {
97 [workspaceActions.update, this._update], 97 [workspaceActions.update, this._update],
98 [workspaceActions.activate, this._setActiveWorkspace], 98 [workspaceActions.activate, this._setActiveWorkspace],
99 [workspaceActions.deactivate, this._deactivateActiveWorkspace], 99 [workspaceActions.deactivate, this._deactivateActiveWorkspace],
100 [workspaceActions.toggleKeepAllWorkspacesLoadedSetting, this._toggleKeepAllWorkspacesLoadedSetting],
100 ]); 101 ]);
101 this._allActions = this._freeUserActions.concat(this._premiumUserActions); 102 this._allActions = this._freeUserActions.concat(this._premiumUserActions);
102 this._registerActions(this._allActions); 103 this._registerActions(this._allActions);
@@ -245,6 +246,10 @@ export default class WorkspacesStore extends FeatureStore {
245 await updateWorkspaceRequest.execute(activeWorkspace); 246 await updateWorkspaceRequest.execute(activeWorkspace);
246 }; 247 };
247 248
249 _toggleKeepAllWorkspacesLoadedSetting = async () => {
250 this._updateSettings({ keepAllWorkspacesLoaded: !this.settings.keepAllWorkspacesLoaded });
251 };
252
248 // Reactions 253 // Reactions
249 254
250 _setFeatureEnabledReaction = () => { 255 _setFeatureEnabledReaction = () => {