diff --git a/src/app/components/annotations/annotation.module.ts b/src/app/components/annotations/annotation.module.ts index 77e6a355e..4faac2f88 100644 --- a/src/app/components/annotations/annotation.module.ts +++ b/src/app/components/annotations/annotation.module.ts @@ -5,12 +5,11 @@ import { RouterModule } from "@angular/router"; import { StrongRoute } from "@interfaces/strongRoute"; import { verificationRoute } from "./annotation.routes"; import { VerificationComponent } from "./pages/verification/verification.component"; +import { ResetProgressWarningComponent } from "./components/reset-progress-warning/reset-progress-warning"; -const internalComponents = []; +const internalComponents = [ResetProgressWarningComponent]; -const components = [ - VerificationComponent, -]; +const components = [VerificationComponent]; const routes = Object.values(verificationRoute) .map((route: StrongRoute) => route.compileRoutes(getRouteConfigForPage)) diff --git a/src/app/components/annotations/components/reset-progress-warning/reset-progress-warning.ts b/src/app/components/annotations/components/reset-progress-warning/reset-progress-warning.ts new file mode 100644 index 000000000..a4d370ddd --- /dev/null +++ b/src/app/components/annotations/components/reset-progress-warning/reset-progress-warning.ts @@ -0,0 +1,61 @@ +import { Component, Input } from "@angular/core"; +import { ModalComponent } from "@menu/widget.component"; +import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap"; + +@Component({ + selector: "baw-reset-progress-warning-modal", + template: ` + + + + `, +}) +export class ResetProgressWarningComponent implements ModalComponent { + @Input() public modal: NgbActiveModal; + @Input() public successCallback: () => void; + + public closeModal(): void { + this.modal.close(); + } + + public success(): void { + this.successCallback(); + this.modal.close(); + } +} diff --git a/src/app/components/annotations/pages/verification/verification.component.html b/src/app/components/annotations/pages/verification/verification.component.html index 2e9e77765..ef313be33 100644 --- a/src/app/components/annotations/pages/verification/verification.component.html +++ b/src/app/components/annotations/pages/verification/verification.component.html @@ -3,7 +3,7 @@

Annotation Verification