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

@@ -17,14 +17,8 @@
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { ActivatedRoute, Router, PRIMARY_OUTLET } from '@angular/router';
import {
ContentService,
AllowableOperationsEnum,
PermissionsEnum,
NodesApiService,
FileUploadErrorEvent,
NotificationService
} from '@alfresco/adf-core';
import { ContentService, AllowableOperationsEnum, PermissionsEnum, NodesApiService, FileUploadErrorEvent } from '@alfresco/adf-core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { PreviewService } from '../../services/preview.service';
@Component({
@@ -70,10 +64,10 @@ export class FileViewComponent implements OnInit {
constructor(private router: Router,
private route: ActivatedRoute,
private snackBar: MatSnackBar,
private nodeApiService: NodesApiService,
private contentServices: ContentService,
private preview: PreviewService,
private notificationService: NotificationService) {
private preview: PreviewService) {
}
ngOnInit() {
@@ -111,7 +105,7 @@ export class FileViewComponent implements OnInit {
onUploadError(event: FileUploadErrorEvent) {
const errorMessage = event.error;
this.notificationService.showError(errorMessage);
this.snackBar.open(errorMessage, '', { duration: 4000 });
}
toggleEmptyMetadata() {