display subtasks

This commit is contained in:
Chneemann 2024-04-08 10:33:49 +02:00
parent 436da4f6be
commit 21b1359290
2 changed files with 5 additions and 1 deletions

View file

@ -228,7 +228,10 @@
</div> </div>
} @else { } @else {
<img class="add" src="./../../../assets/img/add.svg" alt="" /> <img class="add" src="./../../../assets/img/add.svg" alt="" />
} } @if (taskData.subtasks) { @for (task of taskData.subtasks; track
task) {
<p>{{ task }}</p>
} }
</div> </div>
</div> </div>
</div> </div>

View file

@ -121,6 +121,7 @@ export class AddTaskComponent {
this.taskData.date = this.currentDate; this.taskData.date = this.currentDate;
this.taskData.category = ''; this.taskData.category = '';
this.taskData.assigned = []; this.taskData.assigned = [];
this.taskData.subtasks = [];
} }
onSubmit(ngForm: NgForm) { onSubmit(ngForm: NgForm) {