Skip to content

Commit

Permalink
🐛 [Frontend] Fix (#6372)
Browse files Browse the repository at this point in the history
  • Loading branch information
odeimaiz authored Sep 17, 2024
1 parent 7220efe commit 7f466b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,15 @@ qx.Class.define("osparc.dashboard.WorkspaceHeader", {
__buildLayout: function(workspaceId) {
this.getChildControl("icon");
const title = this.getChildControl("title");

this.getChildControl("edit-button").exclude();
this.resetAccessRights();
this.resetMyAccessRights();

const workspace = osparc.store.Workspaces.getInstance().getWorkspace(workspaceId);
if (workspaceId === -1) {
this.__setIcon(osparc.store.Workspaces.iconPath(32));
title.setValue(this.tr("Shared Workspaces"));
this.resetAccessRights();
this.resetMyAccessRights();
} else if (workspace) {
const thumbnail = workspace.getThumbnail();
this.__setIcon(thumbnail ? thumbnail : osparc.store.Workspaces.iconPath(32));
Expand All @@ -176,8 +177,6 @@ qx.Class.define("osparc.dashboard.WorkspaceHeader", {
} else {
this.__setIcon("@FontAwesome5Solid/home/30");
title.setValue(this.tr("My Workspace"));
this.resetAccessRights();
this.resetMyAccessRights();
}
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ qx.Class.define("osparc.desktop.StudyEditorIdlingTracker", {
},

__startTimer: function() {
const inactivityThresholdT = osparc.Preferences.getInstance().getUserInactivityThreshold();
if (inactivityThresholdT === 0) {
// If 0, "Automatic Shutdown of Idle Instances" is disabled
return;
}

const checkFn = () => {
const inactivityThresholdT = osparc.Preferences.getInstance().getUserInactivityThreshold();
const flashMessageDurationS = Math.round(inactivityThresholdT * 0.2);
this.__idlingTime++;

Expand Down

0 comments on commit 7f466b5

Please sign in to comment.