File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
services/static-webserver/client/source/class/osparc Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,15 @@ qx.Class.define("osparc.dashboard.WorkspaceHeader", {
159159 __buildLayout : function ( workspaceId ) {
160160 this . getChildControl ( "icon" ) ;
161161 const title = this . getChildControl ( "title" ) ;
162+
162163 this . getChildControl ( "edit-button" ) . exclude ( ) ;
164+ this . resetAccessRights ( ) ;
165+ this . resetMyAccessRights ( ) ;
163166
164167 const workspace = osparc . store . Workspaces . getInstance ( ) . getWorkspace ( workspaceId ) ;
165168 if ( workspaceId === - 1 ) {
166169 this . __setIcon ( osparc . store . Workspaces . iconPath ( 32 ) ) ;
167170 title . setValue ( this . tr ( "Shared Workspaces" ) ) ;
168- this . resetAccessRights ( ) ;
169- this . resetMyAccessRights ( ) ;
170171 } else if ( workspace ) {
171172 const thumbnail = workspace . getThumbnail ( ) ;
172173 this . __setIcon ( thumbnail ? thumbnail : osparc . store . Workspaces . iconPath ( 32 ) ) ;
@@ -176,8 +177,6 @@ qx.Class.define("osparc.dashboard.WorkspaceHeader", {
176177 } else {
177178 this . __setIcon ( "@FontAwesome5Solid/home/30" ) ;
178179 title . setValue ( this . tr ( "My Workspace" ) ) ;
179- this . resetAccessRights ( ) ;
180- this . resetMyAccessRights ( ) ;
181180 }
182181 } ,
183182
Original file line number Diff line number Diff line change @@ -87,8 +87,13 @@ qx.Class.define("osparc.desktop.StudyEditorIdlingTracker", {
8787 } ,
8888
8989 __startTimer : function ( ) {
90+ const inactivityThresholdT = osparc . Preferences . getInstance ( ) . getUserInactivityThreshold ( ) ;
91+ if ( inactivityThresholdT === 0 ) {
92+ // If 0, "Automatic Shutdown of Idle Instances" is disabled
93+ return ;
94+ }
95+
9096 const checkFn = ( ) => {
91- const inactivityThresholdT = osparc . Preferences . getInstance ( ) . getUserInactivityThreshold ( ) ;
9297 const flashMessageDurationS = Math . round ( inactivityThresholdT * 0.2 ) ;
9398 this . __idlingTime ++ ;
9499
You can’t perform that action at this time.
0 commit comments