diff options
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r-- | src/features/workspaces/store.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index 73e882990..db2b69f99 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -190,6 +190,12 @@ export default class WorkspacesStore extends FeatureStore { | |||
190 | setTimeout(() => { | 190 | setTimeout(() => { |
191 | this.isSwitchingWorkspace = false; | 191 | this.isSwitchingWorkspace = false; |
192 | this.nextWorkspace = null; | 192 | this.nextWorkspace = null; |
193 | if (this.stores.settings.app.splitMode) { | ||
194 | const serviceNames = new Set(this.getWorkspaceServices(workspace).map(service => service.name)); | ||
195 | for (const wrapper of document.querySelectorAll('.services__webview-wrapper')) { | ||
196 | wrapper.style.display = serviceNames.has(wrapper.dataset.name) ? '' : 'none'; | ||
197 | } | ||
198 | } | ||
193 | }, 1000); | 199 | }, 1000); |
194 | }; | 200 | }; |
195 | 201 | ||
@@ -205,6 +211,11 @@ export default class WorkspacesStore extends FeatureStore { | |||
205 | // Indicate that we are done switching to the default workspace | 211 | // Indicate that we are done switching to the default workspace |
206 | setTimeout(() => { | 212 | setTimeout(() => { |
207 | this.isSwitchingWorkspace = false; | 213 | this.isSwitchingWorkspace = false; |
214 | if (this.stores.settings.app.splitMode) { | ||
215 | for (const wrapper of document.querySelectorAll('.services__webview-wrapper')) { | ||
216 | wrapper.style.display = ''; | ||
217 | } | ||
218 | } | ||
208 | }, 1000); | 219 | }, 1000); |
209 | }; | 220 | }; |
210 | 221 | ||