Merge pull request #1904 from Alfresco/dev-denys-ADF-690

[ADF-690] fix upload area snackbar behaviour
This commit is contained in:
Eugenio Romano
2017-05-26 10:35:13 +01:00
committed by Eugenio Romano

View File

@@ -184,7 +184,7 @@ export class UploadDragAreaComponent {
messageTranslate = this.translateService.get('FILE_UPLOAD.MESSAGES.PROGRESS');
actionTranslate = this.translateService.get('FILE_UPLOAD.ACTION.UNDO');
this.notificationService.openSnackMessageAction(messageTranslate.value, actionTranslate.value, 3000).afterDismissed().subscribe(() => {
this.notificationService.openSnackMessageAction(messageTranslate.value, actionTranslate.value, 3000).onAction().subscribe(() => {
latestFilesAdded.forEach((uploadingFileModel: FileModel) => {
uploadingFileModel.emitAbort();
});