From bd4758a3e30b3b4818309f09244784b78b202395 Mon Sep 17 00:00:00 2001 From: Francois Gerthoffert Date: Sat, 30 Apr 2022 20:08:49 -0400 Subject: [PATCH] Misc fixes --- api/src/teams/teams.service.ts | 3 +++ ui/public/index.html | 2 +- ui/src/models/global.ts | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/api/src/teams/teams.service.ts b/api/src/teams/teams.service.ts index 3e9f6d6..0da2385 100644 --- a/api/src/teams/teams.service.ts +++ b/api/src/teams/teams.service.ts @@ -28,6 +28,9 @@ export class TeamsService { this.logger.log('Opening configuration file: ' + configFilePath); const userConfig = await loadYamlFile(configFilePath); for (const team of userConfig.teams) { + this.logger.log( + 'Found the following teams: ' + JSON.stringify(teamsTeam), + ); teamsTeam.push({ id: getTeamId(team.name), name: team.name, diff --git a/ui/public/index.html b/ui/public/index.html index 07b3c3d..0d13b4b 100644 --- a/ui/public/index.html +++ b/ui/public/index.html @@ -26,7 +26,7 @@ --> - React App + Jira Agile Velocity diff --git a/ui/src/models/global.ts b/ui/src/models/global.ts index 2837c92..4af49be 100644 --- a/ui/src/models/global.ts +++ b/ui/src/models/global.ts @@ -147,7 +147,7 @@ export const global: Global = { async initAuth() { if (JSON.parse(window._env_.AUTH0_DISABLED) !== true) { - console.log('User not logged in, initializing authentication'); + console.log('Initializing authentication'); if (window.Auth0 !== undefined) { this.setAuth0Initialized(true); } else { @@ -164,6 +164,7 @@ export const global: Global = { accessToken, authUser: user, }); + this.refreshTeams(); } console.log('Authentication initialized'); }