diff --git a/portal-frontend/src/app/features/notifications/edit-submission/edit-submission.module.ts b/portal-frontend/src/app/features/notifications/edit-submission/edit-submission.module.ts
index 392cc81f59..cc8724ab2c 100644
--- a/portal-frontend/src/app/features/notifications/edit-submission/edit-submission.module.ts
+++ b/portal-frontend/src/app/features/notifications/edit-submission/edit-submission.module.ts
@@ -15,6 +15,7 @@ import { ParcelDetailsComponent } from './parcels/parcel-details.component';
import { ParcelEntryConfirmationDialogComponent } from './parcels/parcel-entry/parcel-entry-confirmation-dialog/parcel-entry-confirmation-dialog.component';
import { ParcelEntryComponent } from './parcels/parcel-entry/parcel-entry.component';
import { PrimaryContactComponent } from './primary-contact/primary-contact.component';
+import { ChangeSurveyPlanConfirmationDialogComponent } from './proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component';
import { ProposalComponent } from './proposal/proposal.component';
import { ReviewAndSubmitComponent } from './review-and-submit/review-and-submit.component';
import { SubmitConfirmationDialogComponent } from './review-and-submit/submit-confirmation-dialog/submit-confirmation-dialog.component';
@@ -52,6 +53,7 @@ const routes: Routes = [
OtherAttachmentsComponent,
ReviewAndSubmitComponent,
SubmitConfirmationDialogComponent,
+ ChangeSurveyPlanConfirmationDialogComponent,
],
imports: [
CommonModule,
diff --git a/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.html b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.html
new file mode 100644
index 0000000000..a08e419468
--- /dev/null
+++ b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.html
@@ -0,0 +1,13 @@
+
+
Is there a survey plan associated with the SRW?
+
+
+
+
+ Warning: Changing this answer will remove the uploaded survey plans.
+
+
+
+
+
+
diff --git a/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.scss b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.scss
new file mode 100644
index 0000000000..3c8856955f
--- /dev/null
+++ b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.scss
@@ -0,0 +1,24 @@
+@use '../../../../../../styles/functions' as *;
+
+.margin-bottom-1 {
+ margin-bottom: rem(16);
+}
+
+.controls {
+ display: flex;
+ justify-content: space-between;
+}
+
+.confirm-content {
+ margin: rem(24) 0;
+}
+
+@media screen and (min-width: $desktopBreakpoint) {
+ .controls {
+ justify-content: flex-end;
+
+ button {
+ margin-left: rem(25) !important;
+ }
+ }
+}
diff --git a/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.spec.ts b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.spec.ts
new file mode 100644
index 0000000000..eb9351819b
--- /dev/null
+++ b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.spec.ts
@@ -0,0 +1,24 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+import { MatDialogRef } from '@angular/material/dialog';
+
+import { ChangeSurveyPlanConfirmationDialogComponent } from './change-survey-plan-confirmation-dialog.component';
+
+describe('ChangeSurveyPlanConfirmationDialogComponent', () => {
+ let component: ChangeSurveyPlanConfirmationDialogComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ChangeSurveyPlanConfirmationDialogComponent],
+ providers: [{ provide: MatDialogRef, useValue: {} }],
+ }).compileComponents();
+
+ fixture = TestBed.createComponent(ChangeSurveyPlanConfirmationDialogComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.ts b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.ts
new file mode 100644
index 0000000000..9e4b63dab1
--- /dev/null
+++ b/portal-frontend/src/app/features/notifications/edit-submission/proposal/change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.ts
@@ -0,0 +1,8 @@
+import { Component } from '@angular/core';
+
+@Component({
+ selector: 'app-delete-structure-confirmation-dialog',
+ templateUrl: './change-survey-plan-confirmation-dialog.component.html',
+ styleUrls: ['./change-survey-plan-confirmation-dialog.component.scss'],
+})
+export class ChangeSurveyPlanConfirmationDialogComponent {}
diff --git a/portal-frontend/src/app/features/notifications/edit-submission/proposal/proposal.component.ts b/portal-frontend/src/app/features/notifications/edit-submission/proposal/proposal.component.ts
index a31f03a03b..28971fe241 100644
--- a/portal-frontend/src/app/features/notifications/edit-submission/proposal/proposal.component.ts
+++ b/portal-frontend/src/app/features/notifications/edit-submission/proposal/proposal.component.ts
@@ -16,6 +16,7 @@ import { formatBooleanToString } from '../../../../shared/utils/boolean-helper';
import { parseStringToBoolean } from '../../../../shared/utils/string-helper';
import { EditNotificationSteps } from '../edit-submission.component';
import { FilesStepComponent } from '../files-step.partial';
+import { ChangeSurveyPlanConfirmationDialogComponent } from './change-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component';
@Component({
selector: 'app-proposal',
@@ -51,7 +52,6 @@ export class ProposalComponent extends FilesStepComponent implements OnInit, OnD
private router: Router,
private notificationSubmissionService: NotificationSubmissionService,
notificationDocumentService: NotificationDocumentService,
- private confirmationDialogService: ConfirmationDialogService,
dialog: MatDialog
) {
super(notificationDocumentService, dialog);
@@ -127,10 +127,9 @@ export class ProposalComponent extends FilesStepComponent implements OnInit, OnD
onChangeHasSurveyPlan(selectedValue: string) {
if (selectedValue === 'false' && this.surveyPlans.length > 0) {
- this.confirmationDialogService
- .openDialog({
- body: 'Warning: Changing this answer will remove the uploaded survey plans.',
- })
+ this.dialog
+ .open(ChangeSurveyPlanConfirmationDialogComponent)
+ .beforeClosed()
.subscribe(async (didConfirm) => {
if (didConfirm) {
for (const file of this.surveyPlans) {