add UI to show assigned user (#110)
All checks were successful
Backend Deploy / build (push) Successful in 32s
Backend Build and Test / build (push) Successful in 3m7s

closes #105

Reviewed-on: #110
This commit is contained in:
Huffle 2025-05-27 18:48:03 +02:00
parent 8c2af22c85
commit 305566c911
3 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,7 @@
<button (click)="completeTask(task.id)">Done</button>
<div (click)="updateTask(task.id)" class="item">
<div class="name">{{ task.name }}</div>
<div class="assigned">{{ usernames[task.assigned ? task.assigned : 0] }}</div>
<div
class="reward"
[ngClass]="{ 'negative': task.reward < 0 }"

View File

@ -67,4 +67,10 @@ button {
background-color: var(--ion-color-primary);
margin-right: 15px;
width: 75px;
}
.assigned {
color: var(--line-color);
margin-left: 3px;
font-size: 12px;
}

View File

@ -14,6 +14,7 @@ import { ViewWillEnter } from '@ionic/angular';
})
export class TasksPage implements ViewWillEnter {
public tasks$: BehaviorSubject<Array<Task>> = new BehaviorSubject<Array<Task>>([]);
public usernames = ['', 'See', 'Huffle']
constructor(
private taskService: TaskService,