-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #989 from bcgov/feature/ALCS-1017
Add nice confirmation modal for changing survey plans
- Loading branch information
Showing
6 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...nge-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div mat-dialog-title> | ||
<h4>Is there a survey plan associated with the SRW?</h4> | ||
</div> | ||
|
||
<div mat-dialog-content class="content"> | ||
<app-warning-banner> | ||
<b>Warning:</b> Changing this answer will remove the uploaded survey plans. <br /> | ||
</app-warning-banner> | ||
<div class="controls"> | ||
<button mat-stroked-button color="primary" [mat-dialog-close]="false">cancel</button> | ||
<button mat-flat-button color="primary" [mat-dialog-close]="true">continue</button> | ||
</div> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
...nge-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<ChangeSurveyPlanConfirmationDialogComponent>; | ||
|
||
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(); | ||
}); | ||
}); |
8 changes: 8 additions & 0 deletions
8
...hange-survey-plan-confirmation-dialog/change-survey-plan-confirmation-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters