[ADF-741] Add the create task attachment component to the demo shell (#1946)

* Add the create task attachment component to the demo shell

* Add translation keys

* Add return to methods
This commit is contained in:
Maurizio Vitale
2017-06-09 14:18:10 +01:00
committed by Eugenio Romano
parent cfb3c9b8ba
commit 33d5f66bd7
11 changed files with 102 additions and 49 deletions

View File

@@ -55,10 +55,14 @@ export class TaskAttachmentListComponent implements OnChanges {
}
}
reset () {
reset(): void {
this.attachments = [];
}
reload(): void {
this.loadAttachmentsByTaskId(this.taskId);
}
private loadAttachmentsByTaskId(taskId: string) {
if (taskId) {
this.reset();