diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index ae5cc70b9..49e937c0b 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -60,7 +60,6 @@ import { NgSelectModule } from '@ng-select/ng-select'; import { NumberComponent } from './components/common/input/number/number.component'; import { SafePipe } from './pipes/safe.pipe'; import { CustomDatePipe } from './pipes/custom-date.pipe'; -import { ConsumerStatusWidgetComponent } from './components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component'; import localeFr from '@angular/common/locales/fr'; import localeNl from '@angular/common/locales/nl'; @@ -119,8 +118,7 @@ registerLocaleData(localeDe) SelectDialogComponent, NumberComponent, SafePipe, - CustomDatePipe, - ConsumerStatusWidgetComponent + CustomDatePipe ], imports: [ BrowserModule, diff --git a/src-ui/src/app/components/dashboard/dashboard.component.html b/src-ui/src/app/components/dashboard/dashboard.component.html index 40fee100f..ec2bbd85c 100644 --- a/src-ui/src/app/components/dashboard/dashboard.component.html +++ b/src-ui/src/app/components/dashboard/dashboard.component.html @@ -19,8 +19,6 @@ - - - + diff --git a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.html b/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.html deleted file mode 100644 index 9ea715043..000000000 --- a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - {{s.filename}}: {{s.message}} - - - Open document - Dismiss - - - - diff --git a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.scss b/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.scss deleted file mode 100644 index e69de29bb..000000000 diff --git a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.spec.ts b/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.spec.ts deleted file mode 100644 index 02aa088f5..000000000 --- a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ConsumerStatusWidgetComponent } from './consumer-status-widget.component'; - -describe('ConsumerStatusWidgetComponent', () => { - let component: ConsumerStatusWidgetComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ ConsumerStatusWidgetComponent ] - }) - .compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(ConsumerStatusWidgetComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.ts deleted file mode 100644 index 8e44af6d5..000000000 --- a/src-ui/src/app/components/dashboard/widgets/consumer-status-widget/consumer-status-widget.component.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Component, OnInit } from '@angular/core'; -import { ConsumerStatusService, FileStatus } from 'src/app/services/consumer-status.service'; - -@Component({ - selector: 'app-consumer-status-widget', - templateUrl: './consumer-status-widget.component.html', - styleUrls: ['./consumer-status-widget.component.scss'] -}) -export class ConsumerStatusWidgetComponent implements OnInit { - - constructor(private consumerStatusService: ConsumerStatusService) { } - - ngOnInit(): void { - } - - getStatus() { - return this.consumerStatusService.consumerStatus - } - - isFinished(status: FileStatus) { - return status.status == "FAILED" || status.status == "SUCCESS" - } - - getType(status) { - switch (status) { - case "WORKING": return "primary" - case "FAILED": return "danger" - case "SUCCESS": return "success" - } - } - - dismiss(status: FileStatus) { - this.consumerStatusService.dismiss(status) - } -}