diff options
author | 2019-09-11 14:17:13 +0200 | |
---|---|---|
committer | 2019-09-11 14:17:13 +0200 | |
commit | ddab3a88b297fe244971b0d4fb9ff3fca3a8a1fe (patch) | |
tree | 4d1df67bd12c0a4f82c483f1c2d4f6c9e20c4281 /src/stores | |
parent | Update CHANGELOG.md (diff) | |
download | ferdium-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/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index 2fc543192..dcffb57ac 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -121,10 +121,10 @@ export default class ServicesStore extends Store { | |||
121 | 121 | ||
122 | // This is just used to avoid unnecessary rerendering of resource-heavy webviews | 122 | // This is just used to avoid unnecessary rerendering of resource-heavy webviews |
123 | @computed get allDisplayedUnordered() { | 123 | @computed get allDisplayedUnordered() { |
124 | const { showDisabledServices } = this.stores.settings.all.app; | 124 | const { showDisabledServices, keepAllWorkspacesLoaded } = this.stores.settings.all.app; |
125 | const services = this.allServicesRequest.execute().result || []; | 125 | const services = this.allServicesRequest.execute().result || []; |
126 | const filteredServices = showDisabledServices ? services : services.filter(service => service.isEnabled); | 126 | const filteredServices = showDisabledServices ? services : services.filter(service => service.isEnabled); |
127 | return workspaceStore.filterServicesByActiveWorkspace(filteredServices); | 127 | return keepAllWorkspacesLoaded ? filteredServices : workspaceStore.filterServicesByActiveWorkspace(filteredServices); |
128 | } | 128 | } |
129 | 129 | ||
130 | @computed get filtered() { | 130 | @computed get filtered() { |