parent
8c2af22c85
commit
305566c911
@ -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 }"
|
||||
|
@ -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;
|
||||
}
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user