Change server url (#111)
All checks were successful
Backend Deploy / build (push) Successful in 29s
Backend Build and Test / build (push) Successful in 3m15s

closes #103

Reviewed-on: #111
This commit is contained in:
Huffle 2025-05-27 19:06:23 +02:00
parent 305566c911
commit 89d31fe150
6 changed files with 9 additions and 6 deletions

View File

@ -36,7 +36,7 @@ export class AllowancePage implements ViewWillEnter {
allowance[0].name = 'Main Allowance';
this.allowance$.next(allowance);
})
}, 20);
}, 50);
}
canFinishGoal(allowance: Allowance): boolean {
@ -57,6 +57,9 @@ export class AllowancePage implements ViewWillEnter {
for (let allowance of allowanceList) {
allowanceTotal += allowance.progress;
}
if (allowanceTotal === 0) {
return 0;
}
return goal.progress / allowanceTotal * 100;
}

View File

@ -33,7 +33,7 @@ export class TasksPage implements ViewWillEnter {
this.taskService.getTaskList().subscribe(tasks => {
this.tasks$.next(tasks);
});
}, 10);
}, 50);
}
createTask() {

View File

@ -7,7 +7,7 @@ import { Allowance } from '../models/allowance';
providedIn: 'root'
})
export class AllowanceService {
private url = 'http://localhost:8080/api';
private url = 'https://allowanceplanner.seeseepuff.be/api';
constructor(private http: HttpClient) {}

View File

@ -7,7 +7,7 @@ import { History } from '../models/history';
providedIn: 'root'
})
export class HistoryService {
private url = 'http://localhost:8080/api';
private url = 'https://allowanceplanner.seeseepuff.be/api';
constructor(private http: HttpClient) {}

View File

@ -7,7 +7,7 @@ import { Task } from '../models/task';
providedIn: 'root'
})
export class TaskService {
private url = 'http://localhost:8080/api';
private url = 'https://allowanceplanner.seeseepuff.be/api';
constructor(private http: HttpClient) {}

View File

@ -7,7 +7,7 @@ import { User } from '../models/user';
providedIn: 'root',
})
export class UserService {
private url = 'http://localhost:8080/api';
private url = 'https://allowanceplanner.seeseepuff.be/api';
constructor(private http: HttpClient) {}
getUserList(): Observable<Array<User>> {