Skip to content

Commit 119e6cc

Browse files
committed
read from localStorage
1 parent 76265bb commit 119e6cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,12 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
251251
this.__viewModeLayout = new qx.ui.toolbar.Part();
252252

253253
const resourcesContainer = this._resourcesContainer = new osparc.dashboard.ResourceContainerManager();
254+
if (this._resourceType === "study") {
255+
const viewMode = osparc.utils.Utils.localCache.getLocalStorageItem("studiesViewMode");
256+
if (viewMode) {
257+
this._resourcesContainer.setMode(viewMode);
258+
}
259+
}
254260
resourcesContainer.addListener("updateStudy", e => this._updateStudyData(e.getData()));
255261
resourcesContainer.addListener("updateTemplate", e => this._updateTemplateData(e.getData()));
256262
resourcesContainer.addListener("updateService", e => this._updateServiceData(e.getData()));

0 commit comments

Comments
 (0)