fix thumbnail task process list (#1951)

This commit is contained in:
Eugenio Romano
2017-06-09 18:17:25 +01:00
committed by Eugenio Romano
parent f60035369a
commit e7a1f46ac8
7 changed files with 201 additions and 97 deletions

View File

@@ -78,8 +78,10 @@ export class TaskAttachmentListComponent implements OnChanges {
});
});
this.success.emit(this.attachments);
});
}
},
(err) => {
this.error.emit(err);
}); }
}
private deleteAttachmentById(contentId: string) {
@@ -89,6 +91,9 @@ export class TaskAttachmentListComponent implements OnChanges {
this.attachments = this.attachments.filter(content => {
return content.id !== contentId;
});
},
(err) => {
this.error.emit(err);
});
}
}