fix upload area snackbar behaviour

This commit is contained in:
Denys Vuika
2017-05-25 14:16:37 +01:00
committed by Eugenio Romano
parent c6f6227da7
commit 53d693b900

View File

@@ -184,7 +184,7 @@ export class UploadDragAreaComponent {
messageTranslate = this.translateService.get('FILE_UPLOAD.MESSAGES.PROGRESS'); messageTranslate = this.translateService.get('FILE_UPLOAD.MESSAGES.PROGRESS');
actionTranslate = this.translateService.get('FILE_UPLOAD.ACTION.UNDO'); 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) => { latestFilesAdded.forEach((uploadingFileModel: FileModel) => {
uploadingFileModel.emitAbort(); uploadingFileModel.emitAbort();
}); });