mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user