Skip to content

Commit 8f50329

Browse files
author
Rodrigo Lins
committed
fix: TTA-180 CR fixes
1 parent 342aa8a commit 8f50329

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

src/app/modules/login/login.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ <h3>Please log in</h3>
1111
<button (click)="login() " class="btn btn-primary">login</button>
1212
</div>
1313
<div *ngIf="!isProduction">
14-
<a href="{{loginAuth()}}"><button class="btn btn-primary">Login</button></a>
14+
<button class="btn btn-primary" (click)="loginAuth()">Login</button>
1515
</div>
1616
</div>

src/app/modules/login/login.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ export class LoginComponent implements OnInit {
6767
}
6868
}
6969

70-
loginAuth(): string {
71-
return `${this.authUrl}/authn/login/${this.authAppName}`;
70+
loginAuth() {
71+
window.location.href = `${this.authUrl}/authn/login/${this.authAppName}`;
7272
}
7373

7474
}

src/app/modules/shared/components/sidebar/sidebar.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class SidebarComponent implements OnInit, OnDestroy {
4242

4343
ngOnDestroy(): void {
4444
this.sidebarItems$.unsubscribe();
45-
this.logout();
4645
}
4746

4847
toggleSideBar() {

src/environments/environment.prod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export const environment = {
44
production: EnvironmentType.TT_PROD,
55
timeTrackerApiUrl: process.env["API_URL"],
66
stackexchangeApiUrl: 'https://api.stackexchange.com',
7-
authUrl: 'https://api.auth.ioet.com',
8-
authAppName: 'timeTracker',
7+
authUrl: process.env['AUTH_URL'],
8+
authAppName: process.env['AUTH_APP_NAME'],
99
};
1010

1111
export const AUTHORITY = process.env["AUTHORITY"];

0 commit comments

Comments
 (0)