diff --git a/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.html b/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.html
index 4eb626208..67f241f79 100644
--- a/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.html
+++ b/apps/red-ui/src/app/screens/admin/dictionary-overview-screen/dictionary-overview-screen.component.html
@@ -99,15 +99,14 @@
-
-
diff --git a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
index bf8d37810..ba2cb8055 100644
--- a/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
+++ b/apps/red-ui/src/app/screens/project-overview-screen/project-overview-screen.component.ts
@@ -1,6 +1,6 @@
import { ChangeDetectorRef, Component, HostListener, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
-import { NotificationService } from '../../notification/notification.service';
+import { NotificationService, NotificationType } from '../../notification/notification.service';
import { AppStateService } from '../../state/app-state.service';
import { FileDropOverlayService } from '../../upload/file-drop/service/file-drop-overlay.service';
import { FileUploadModel } from '../../upload/model/file-upload.model';
@@ -114,7 +114,23 @@ export class ProjectOverviewScreenComponent implements OnInit, OnDestroy {
}
public reanalyseProject() {
- return this.appStateService.reanalyzeProject().then(() => this.reloadProjects());
+ return this.appStateService
+ .reanalyzeProject()
+ .then(() => {
+ this.reloadProjects();
+ this._notificationService.showToastNotification(
+ this._translateService.instant('project-overview.reanalyse-project.success'),
+ null,
+ NotificationType.SUCCESS
+ );
+ })
+ .catch(() => {
+ this._notificationService.showToastNotification(
+ this._translateService.instant('project-overview.reanalyse-project.error'),
+ null,
+ NotificationType.ERROR
+ );
+ });
}
public isPending(fileStatusWrapper: FileStatusWrapper) {
diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json
index d546729e5..3bacef518 100644
--- a/apps/red-ui/src/assets/i18n/en.json
+++ b/apps/red-ui/src/assets/i18n/en.json
@@ -260,6 +260,10 @@
"assign": "Assign Reviewer",
"reanalyse": "Analyze Documents",
"reanalyse-error-outdated": "Not all selected documents can be analyzed, some may not be assigned to you or are already analyzed."
+ },
+ "reanalyse-project": {
+ "success": "Files scheduled for reanalysis.",
+ "error": "Failed to schedule files for reanalysis. Please try again."
}
},
"file-preview": {
diff --git a/apps/red-ui/src/assets/styles/red-button.scss b/apps/red-ui/src/assets/styles/red-button.scss
index 802bfaf83..f30726a9f 100644
--- a/apps/red-ui/src/assets/styles/red-button.scss
+++ b/apps/red-ui/src/assets/styles/red-button.scss
@@ -31,16 +31,17 @@
opacity: 0 !important;
}
-.mat-flat-button.mat-primary {
+.mat-flat-button.mat-primary,
+.mat-button.primary {
padding: 0 14px;
transition: background-color 0.2s, color 0.2s;
background-color: $red-1;
&.mat-button-disabled {
background-color: $red-1;
- color: $white;
- > * {
+ .mat-button-wrapper {
+ color: $white;
opacity: 0.5;
}
}