Added dynamic list enlargement

This commit is contained in:
Nicolai Ort 2020-06-10 11:34:39 +02:00
parent e1a531ce80
commit a5323552b0
4 changed files with 12 additions and 2 deletions

View File

@ -47,6 +47,6 @@ export class TaskFormComponent implements OnInit {
});
}
this.submitted = true;
this.activeModalService.close();
this.activeModalService.close(this.task);
}
}

View File

@ -43,6 +43,11 @@ export class TaskListComponent implements OnInit {
backdrop: 'static',
keyboard: true,
});
if (editTask === null) {
modalRef.result.then(result => {
this.tasks.push(result);
});
}
modalRef.componentInstance.task = editTask;
}

View File

@ -47,6 +47,6 @@ export class UserstoryFormComponent implements OnInit {
});
}
this.submitted = true;
this.activeModalService.close();
this.activeModalService.close(this.userstory);
}
}

View File

@ -43,6 +43,11 @@ export class UserstoryListComponent implements OnInit {
backdrop: 'static',
keyboard: true,
});
if (editUserstory === null) {
modalRef.result.then(result => {
this.userstories.push(result);
});
}
modalRef.componentInstance.userstory = editUserstory;
}