Skip to content

Commit

Permalink
Misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fgerthoffert committed May 1, 2022
1 parent ee2dcb1 commit bd4758a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions api/src/teams/teams.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion ui/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-->
<script src="%PUBLIC_URL%/env-config.js"></script>

<title>React App</title>
<title>Jira Agile Velocity</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
3 changes: 2 additions & 1 deletion ui/src/models/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -164,6 +164,7 @@ export const global: Global = {
accessToken,
authUser: user,
});
this.refreshTeams();
}
console.log('Authentication initialized');
}
Expand Down

0 comments on commit bd4758a

Please sign in to comment.