File tree Expand file tree Collapse file tree 1 file changed +15
-14
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -356,20 +356,21 @@ qx.Class.define("osparc.dashboard.StudyBrowser", {
356356 }
357357 }
358358
359- // Show Quick Start if there are no studies in the root folder of the personal workspace
360- const quickStartInfo = osparc . product . quickStart . Utils . getQuickStart ( ) ;
361- if ( quickStartInfo ) {
362- const dontShowQuickStart = osparc . utils . Utils . localCache . getLocalStorageItem ( quickStartInfo . localStorageStr ) ;
363- if ( dontShowQuickStart === "true" || this . __dontQuickStart ) {
364- return ;
365- }
366- const nStudies = "_meta" in resp ? resp [ "_meta" ] [ "total" ] : 0 ;
367- if (
368- nStudies === 0 &&
369- this . getCurrentContext ( ) === osparc . dashboard . StudyBrowser . CONTEXT . PROJECTS &&
370- this . getCurrentWorkspaceId ( ) === null &&
371- this . getCurrentFolderId ( ) === null
372- ) {
359+ // Check if this is the first time the user logged in
360+ const nStudies = "_meta" in resp ? resp [ "_meta" ] [ "total" ] : 0 ;
361+ if (
362+ nStudies === 0 &&
363+ this . getCurrentContext ( ) === osparc . dashboard . StudyBrowser . CONTEXT . PROJECTS &&
364+ this . getCurrentWorkspaceId ( ) === null &&
365+ this . getCurrentFolderId ( ) === null
366+ ) {
367+ osparc . support . SupportCenter . openWindow ( ) ;
368+ const quickStartInfo = osparc . product . quickStart . Utils . getQuickStart ( ) ;
369+ if ( quickStartInfo ) {
370+ const dontShowQuickStart = osparc . utils . Utils . localCache . getLocalStorageItem ( quickStartInfo . localStorageStr ) ;
371+ if ( dontShowQuickStart === "true" || this . __dontQuickStart ) {
372+ return ;
373+ }
373374 const quickStartWindow = quickStartInfo . tutorial ( ) ;
374375 quickStartWindow . center ( ) ;
375376 quickStartWindow . open ( ) ;
You can’t perform that action at this time.
0 commit comments