Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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