diff --git a/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html b/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html
index 542fcde47..f1958e01c 100644
--- a/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html
+++ b/apps/red-ui/src/app/components/admin-page-header/admin-breadcrumbs.component.html
@@ -5,7 +5,7 @@
[routerLinkActiveOptions]="{ exact: true }"
routerLinkActive="active"
translate="project-templates"
- *ngIf="root || !!appStateService.activeRuleSetId"
+ *ngIf="root || !!appStateService.activeRuleSet"
>
-
+
-
+
{
+ await this._appStateService.loadAllRuleSets();
+ await this._appStateService.loadDictionaryData();
+ await this._router.navigate(['ui', 'admin']);
this.loadRuleSetsData.emit();
});
}
diff --git a/apps/red-ui/src/app/dialogs/dialog.service.ts b/apps/red-ui/src/app/dialogs/dialog.service.ts
index edf13c942..663989e2e 100644
--- a/apps/red-ui/src/app/dialogs/dialog.service.ts
+++ b/apps/red-ui/src/app/dialogs/dialog.service.ts
@@ -57,17 +57,15 @@ export class DialogService {
})
});
- ref.afterClosed().subscribe((result) => {
+ ref.afterClosed().subscribe(async (result) => {
if (result) {
- const deleteFilesPromise = this._fileManagementControllerService.deleteFiles(fileIds, projectId).toPromise();
- deleteFilesPromise
- .then(async () => {
- await this._appStateService.reloadActiveProjectFiles();
- if (cb) cb();
- })
- .catch(() => {
- this._notificationService.showToastNotification(this._translateService.instant('delete-files-error'), null, NotificationType.ERROR);
- });
+ try {
+ await this._fileManagementControllerService.deleteFiles(fileIds, projectId).toPromise();
+ await this._appStateService.reloadActiveProjectFiles();
+ if (cb) cb();
+ } catch (e) {
+ this._notificationService.showToastNotification(this._translateService.instant('delete-files-error'), null, NotificationType.ERROR);
+ }
}
});
@@ -190,8 +188,7 @@ export class DialogService {
ref.afterClosed().subscribe(async (result) => {
if (result) {
await this._ruleSetControllerService.getAllRuleSets(ruleSet.ruleSetId).toPromise();
- await this._appStateService.loadAllRuleSets();
- if (cb) cb();
+ if (cb) await cb();
}
});
return ref;
diff --git a/apps/red-ui/src/app/screens/admin/rule-sets-listing-screen/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts b/apps/red-ui/src/app/screens/admin/rule-sets-listing-screen/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts
index cf487b94b..73d38c520 100644
--- a/apps/red-ui/src/app/screens/admin/rule-sets-listing-screen/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts
+++ b/apps/red-ui/src/app/screens/admin/rule-sets-listing-screen/add-edit-rule-set-dialog/add-edit-rule-set-dialog.component.ts
@@ -56,6 +56,7 @@ export class AddEditRuleSetDialogComponent {
};
await this._ruleSetController.createOrUpdateRuleSet(ruleSet).toPromise();
await this._appStateService.loadAllRuleSets();
+ await this._appStateService.loadDictionaryData();
this.dialogRef.close({ ruleSet });
}
}
diff --git a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
index 51955bdef..65c75bf4a 100644
--- a/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
+++ b/apps/red-ui/src/app/screens/file/file-preview-screen/file-preview-screen.component.html
@@ -1,4 +1,4 @@
-