diff --git a/components/centraldashboard/public/components/main-page.js b/components/centraldashboard/public/components/main-page.js index 38627f3bc7f..df9c0109303 100644 --- a/components/centraldashboard/public/components/main-page.js +++ b/components/centraldashboard/public/components/main-page.js @@ -448,8 +448,6 @@ export class MainPage extends mixinBehaviors([AppLocalizeBehavior], utilitiesMix * @return {boolean} */ computeShouldFetchEnv(registrationFlow, workgroupStatusHasLoaded) { - console.log('registration ' + registrationFlow); - console.log('workgroup ' + workgroupStatusHasLoaded); return !registrationFlow && workgroupStatusHasLoaded; } @@ -462,6 +460,7 @@ export class MainPage extends mixinBehaviors([AppLocalizeBehavior], utilitiesMix computeShouldFetchUser(registrationFlow, workgroupStatusHasLoaded) { console.log('registration ' + registrationFlow); console.log('workgroup ' + workgroupStatusHasLoaded); + console.log('both ' +registrationFlow && workgroupStatusHasLoaded); return registrationFlow && workgroupStatusHasLoaded; } diff --git a/components/centraldashboard/public/components/main-page.pug b/components/centraldashboard/public/components/main-page.pug index 100f7e4a4aa..7b1b3873bb7 100644 --- a/components/centraldashboard/public/components/main-page.pug +++ b/components/centraldashboard/public/components/main-page.pug @@ -5,7 +5,7 @@ iron-ajax(auto, id='ajax-dashboard-links', url='/api/dashboard-links', handle-as iron-ajax#envInfo(auto='[[_shouldFetchEnv]]', url='/api/workgroup/env-info', handle-as='json', on-response='_onEnvInfoResponse') iron-ajax#envInfo(auto='[[_shouldFetchUser]]', url='/api/workgroup/user-info', handle-as='json', - on-response='_onUserInfoResponse') + on-response='_onUserInfoResponse', on-error='_onNotebookServersError') iron-ajax(auto, url="[[getNotebookServersUrl]]", handle-as="json", loading="{{loading}}", on-response="_onNotebookServersResponse", on-error="_onNotebookServersError") aside#PageLoader(hidden='{{!pageLoading}}')