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: ` +
+ Because you have changed the verification tasks search parameters, your + progress will be reset if you continue. +
+ ++ Do you wish to reset your progress and continue with the new search + parameters? +
+ +