edit folder error notification (#296)

This commit is contained in:
Cilibiu Bogdan
2018-04-11 12:03:27 +03:00
committed by Denys Vuika
parent 4f48ed9361
commit b47fc2cb3f
6 changed files with 48 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ import { Router, ActivatedRoute, Params } from '@angular/router';
import { MinimalNodeEntity, MinimalNodeEntryEntity, PathElementEntity, NodePaging, PathElement } from 'alfresco-js-api';
import {
UploadService, FileUploadEvent, NodesApiService,
ContentService, AlfrescoApiService, UserPreferencesService
ContentService, AlfrescoApiService, UserPreferencesService, NotificationService
} from '@alfresco/adf-core';
import { BrowsingFilesService } from '../../common/services/browsing-files.service';
@@ -62,6 +62,7 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
private browsingFilesService: BrowsingFilesService,
private contentService: ContentService,
private apiService: AlfrescoApiService,
private notificationService: NotificationService,
public permission: NodePermissionService,
preferences: UserPreferencesService) {
super(preferences);
@@ -307,6 +308,13 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
this.preferences.set(`${this.prefix}.sorting.direction`, event.detail.direction || 'desc');
}
openSnackMessage(event: any) {
this.notificationService.openSnackMessage(
event,
4000
);
}
private get prefix() {
return this.route.snapshot.data.preferencePrefix;
}