diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 2cbdb6539..e151ff455 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -61,6 +61,7 @@ import { MatInputModule } from '@angular/material/input'; import { ProjectMemberGuard } from './auth/project-member-guard.service'; import { HumanizePipe } from './utils/humanize.pipe'; import { ManualAnnotationDialogComponent } from './dialogs/manual-redaction-dialog/manual-annotation-dialog.component'; +import { ToastComponent } from './components/toast/toast.component'; export function HttpLoaderFactory(httpClient: HttpClient) { return new TranslateHttpLoader(httpClient, '/assets/i18n/', '.json'); @@ -86,7 +87,8 @@ export function HttpLoaderFactory(httpClient: HttpClient) { ManualAnnotationDialogComponent, AnnotationIconComponent, AuthErrorComponent, - HumanizePipe + HumanizePipe, + ToastComponent ], imports: [ BrowserModule, @@ -169,7 +171,11 @@ export function HttpLoaderFactory(httpClient: HttpClient) { MatTabsModule, MatButtonToggleModule, MatFormFieldModule, - ToastrModule.forRoot({ closeButton: true }), + ToastrModule.forRoot({ + closeButton: true, + enableHtml: true, + toastComponent: ToastComponent + }), MatSelectModule, MatSidenavModule, FileUploadModule, diff --git a/apps/red-ui/src/app/components/simple-doughnut-chart/simple-doughnut-chart.component.scss b/apps/red-ui/src/app/components/simple-doughnut-chart/simple-doughnut-chart.component.scss index cb54c37e8..895fa4c83 100644 --- a/apps/red-ui/src/app/components/simple-doughnut-chart/simple-doughnut-chart.component.scss +++ b/apps/red-ui/src/app/components/simple-doughnut-chart/simple-doughnut-chart.component.scss @@ -38,54 +38,3 @@ gap: 8px; } } - -// 'UNPROCESSED' -// | 'REPROCESS' -// | 'PROCESSING'REPROCESS -// | 'ERROR' -// | 'UNASSIGNED' -// | 'UNDER_REVIEW' -// | 'UNDER_APPROVAL' -// | 'APPROVED'; - -circle { - &.UNASSIGNED { - stroke: $grey-5; - } - - &.UNPROCESSED { - stroke: $grey-3; - } - - &.UNDER_REVIEW { - stroke: $yellow-1; - } - - &.UNDER_APPROVAL { - stroke: $blue-4; - } - - &.APPROVED { - stroke: $blue-3; - } - - &.PROCESSING { - stroke: $green-2; - } - - &.REPROCESS { - stroke: $green-1; - } - - &.ERROR { - stroke: $red-1; - } - - &.ACTIVE { - stroke: $primary; - } - - &.ARCHIVED { - stroke: rgba($red-1, 0.1); - } -} diff --git a/apps/red-ui/src/app/components/status-bar/status-bar.component.scss b/apps/red-ui/src/app/components/status-bar/status-bar.component.scss index e0e0a814b..6d41e9b55 100644 --- a/apps/red-ui/src/app/components/status-bar/status-bar.component.scss +++ b/apps/red-ui/src/app/components/status-bar/status-bar.component.scss @@ -38,41 +38,5 @@ .rectangle { height: 4px; - - &.UNASSIGNED { - background-color: $grey-5; - } - - &.UNDER_REVIEW { - background-color: $yellow-1; - } - - &.UNDER_APPROVAL { - background-color: $red-1; - } - - &.APPROVED { - background-color: $blue-2; - } - - &.SUBMITTED { - background-color: $blue-3; - } - - &.EFSA { - background-color: $blue-4; - } - - &.FINISHED { - background-color: $green-2; - } - - &.ACTIVE { - background-color: $primary; - } - - &.ARCHIVED { - background-color: rgba($red-1, 0.1); - } } } diff --git a/apps/red-ui/src/app/components/toast/toast.component.html b/apps/red-ui/src/app/components/toast/toast.component.html new file mode 100644 index 000000000..3ec0115cc --- /dev/null +++ b/apps/red-ui/src/app/components/toast/toast.component.html @@ -0,0 +1,32 @@ +
+