Revert "ACS-3640 a 11 y aca 881740 snackbar messages disappear without option to adjust timing (#7916)" (#7977)

This reverts commit 4d76ebe1ab.
This commit is contained in:
Denys Vuika
2022-11-15 16:30:31 +00:00
committed by GitHub
parent 54c1dbeca5
commit 2683383881
26 changed files with 51 additions and 443 deletions

View File

@@ -180,7 +180,7 @@ describe('PermissionListComponent', () => {
.toBe('PERMISSION_MANAGER.LABELS.INHERITED-PERMISSIONS PERMISSION_MANAGER.LABELS.ON');
expect(element.querySelector('span[title="total"]').textContent.trim())
.toBe('PERMISSION_MANAGER.LABELS.INHERITED-SUBTITLE');
expect(document.querySelector('.adf-snackbar-message-content').textContent)
expect(document.querySelector('simple-snack-bar').textContent)
.toContain('PERMISSION_MANAGER.ERROR.NOT-ALLOWED');
});

View File

@@ -75,7 +75,7 @@ export class UploadDragAreaComponent extends UploadBase implements NodeAllowable
const messageTranslate = this.translationService.instant('FILE_UPLOAD.MESSAGES.PROGRESS');
const actionTranslate = this.translationService.instant('FILE_UPLOAD.ACTION.UNDO');
this.notificationService.openSnackMessageAction(messageTranslate, actionTranslate).onAction().subscribe(() => {
this.notificationService.openSnackMessageAction(messageTranslate, actionTranslate, 3000).onAction().subscribe(() => {
this.uploadService.cancelUpload(...latestFilesAdded);
});
}