Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jstn2004 committed Jun 15, 2024
1 parent 774139c commit c7ac708
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions frontend/proxy.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ const PROXY_CONFIG = [
context: [
"/api/"
],
target: "https://staging.duo-gradus.de/api",
target: "https://staging.duo-gradus.de",
changeOrigin: true,
secure: false,
pathRewrite: {
"^/api": ""
}


}
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2>{{ eventservice.steps }}</h2>

<div class="streak">
<img src="../../../../assets/icons/f7--flame.svg" alt="Icon Streak" />
<h2>{{mainpageservice.streak.streak}}</h2>
<h2>{{this.mainpageservice.streak.streak}}</h2>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class MainpageComponent implements OnInit{
constructor(private LoaderService: LoaderService) { }

ngOnInit(): void {
this.LoaderService.show();


}

Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class AuthService {
});
this.http.get<any>(this.apiUrl, { headers: headers }).subscribe(
(data: any) => {
console.log('success');
this.loaderService.hide();
localStorage.setItem('credentials', JSON.stringify(this.credentials));
this.router.navigate(['/main']);
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/app/services/mainpage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,14 @@ export class MainpageService {
*/
getListOfAllTasks()
{
console.log('getListOfAllTasks');
const credentials = this.authService.getCredentials();
const headers = new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': `Basic ${credentials}`
});
this.http.get<any>(this.apiUrlTask, { headers: headers }).subscribe(
(data: any) => {
setTimeout(() => {
this.loaderService.hide();
}, 200);
console.error('datas:', data);
this.taskdata = data;
},
Expand Down

0 comments on commit c7ac708

Please sign in to comment.