display subtasks
This commit is contained in:
parent
436da4f6be
commit
21b1359290
2 changed files with 5 additions and 1 deletions
|
|
@ -228,7 +228,10 @@
|
|||
</div>
|
||||
} @else {
|
||||
<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>
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ export class AddTaskComponent {
|
|||
this.taskData.date = this.currentDate;
|
||||
this.taskData.category = '';
|
||||
this.taskData.assigned = [];
|
||||
this.taskData.subtasks = [];
|
||||
}
|
||||
|
||||
onSubmit(ngForm: NgForm) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue