[ASD-2483] Validate folder name on change (#3088)

* notify service refactoring
get translate eliminitation in favor of instant
add error event where necessary
fix config problem during test

* fix delete notify test

* remove fdescribe

* fix core test

* errors

* fix types
This commit is contained in:
Eugenio Romano
2018-03-21 16:55:52 +00:00
committed by GitHub
parent de0fdd9ab4
commit 2951374cc0
25 changed files with 357 additions and 260 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { AppsProcessService, NotificationService, TranslationService } from '@alfresco/adf-core';
import { AppsProcessService } from '@alfresco/adf-core';
import { Component, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
@@ -30,8 +30,6 @@ export class SelectAppsDialogComponent {
selectedProcess: any;
constructor(private appsProcessService: AppsProcessService,
private translateService: TranslationService,
private notificationService: NotificationService,
public dialogRef: MatDialogRef<SelectAppsDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) {
@@ -40,14 +38,8 @@ export class SelectAppsDialogComponent {
this.processApps = apps.filter((currentApp) => {
return currentApp.id;
});
},
(err) => {
this.translateService.get('TAG.MESSAGES.EXIST').subscribe((error) => {
this.notificationService.openSnackMessage(error, 4000);
});
}
);
}
onStart(): void {