Skip to content

Commit

Permalink
changes from the meeting
Browse files Browse the repository at this point in the history
  • Loading branch information
carolcarpenter committed Jan 21, 2025
1 parent d74d98f commit 043c7d4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { AppRoutes } from '@app/app-routes';
import { SPD_CONSTANTS } from '@app/core/constants/constants';
import { BusinessLicenceApplicationRoutes } from '@app/modules/business-licence-application/business-license-application-routes';
import { GuideDogServiceDogRoutes } from '@app/modules/guide-dog-service-dog/guide-dog-service-dog-routes';
import { MetalDealersAndRecyclersRoutes } from '@app/modules/metal-dealers-and-recyclers/metal-dealers-and-recyclers-routes';
import { PersonalLicenceApplicationRoutes } from '@app/modules/personal-licence-application/personal-licence-application-routes';
import { DialogComponent, DialogOptions } from '@app/shared/components/dialog.component';
import { FormatDatePipe } from '@app/shared/pipes/format-date.pipe';
Expand Down Expand Up @@ -170,7 +171,9 @@ export class CommonApplicationService {
}
}

if (currentPath.includes(GuideDogServiceDogRoutes.MODULE_PATH)) {
if (currentPath.includes(MetalDealersAndRecyclersRoutes.MODULE_PATH)) {
this.router.navigateByUrl(MetalDealersAndRecyclersRoutes.path());
} else if (currentPath.includes(GuideDogServiceDogRoutes.MODULE_PATH)) {
this.router.navigateByUrl(GuideDogServiceDogRoutes.path());
} else {
this.router.navigateByUrl(AppRoutes.path(AppRoutes.LANDING));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export abstract class MetalDealersApplicationHelper extends CommonApplicationHel
givenName: new FormControl(''),
middleName: new FormControl(''),
surname: new FormControl('', [FormControlValidators.required]),
attachments: new FormControl([]),
attachments: new FormControl([], [FormControlValidators.required]),
});

businessManagerFormGroup: FormGroup = this.formBuilder.group({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ export class MetalDealersMainComponent {
.pipe(
tap((_resp: any) => {
this.router.navigateByUrl(
MetalDealersAndRecyclersRoutes.pathMetalDealersAndRecyclers(
MetalDealersAndRecyclersRoutes.METAL_DEALERS_AND_RECYCLERS_REGISTER
)
MetalDealersAndRecyclersRoutes.path(MetalDealersAndRecyclersRoutes.METAL_DEALERS_AND_RECYCLERS_REGISTER)
);
}),
take(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
[isWideNext]="true"
(nextStepperStep)="onFormValidNextStep(STEP_REGISTRATION_INFORMATION)"
></app-wizard-footer>
Expand All @@ -45,7 +44,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
(previousStepperStep)="onGoToPreviousStep()"
(nextStepperStep)="onFormValidNextStep(STEP_BUSINESS_OWNER)"
></app-wizard-footer>
Expand All @@ -58,7 +56,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
(previousStepperStep)="onGoToPreviousStep()"
(nextStepperStep)="onFormValidNextStep(STEP_BUSINESS_MANAGER)"
></app-wizard-footer>
Expand All @@ -71,7 +68,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
(previousStepperStep)="onGoToPreviousStep()"
(nextStepperStep)="onFormValidNextStep(STEP_BUSINESS_ADDRESSES)"
></app-wizard-footer>
Expand All @@ -84,7 +80,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
(previousStepperStep)="onGoToPreviousStep()"
(nextStepperStep)="onFormValidNextStep(STEP_BRANCH_OFFICES)"
></app-wizard-footer>
Expand All @@ -97,7 +92,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
(previousStepperStep)="onGoToPreviousStep()"
(nextStepperStep)="onFormValidNextStep(STEP_REVIEW)"
></app-wizard-footer>
Expand All @@ -110,7 +104,6 @@ import { StepMetalDealersSummaryComponent } from './step-metal-dealers-summary.c
<app-wizard-footer
cancelLabel="Cancel"
(cancelStep)="onCancel()"
(previousStepperStep)="onGoToPreviousStep()"
nextButtonLabel="Submit"
(nextStepperStep)="onSubmit()"
Expand Down Expand Up @@ -161,7 +154,7 @@ export class MetalDealersWizardComponent extends BaseWizardComponent implements

ngOnInit(): void {
if (!this.metalDealersApplicationService.initialized) {
this.router.navigateByUrl(MetalDealersAndRecyclersRoutes.pathMetalDealersAndRecyclers());
this.router.navigateByUrl(MetalDealersAndRecyclersRoutes.path());
return;
}

Expand All @@ -185,8 +178,6 @@ export class MetalDealersWizardComponent extends BaseWizardComponent implements
if (this.metalDealersModelValueChangedSubscription) this.metalDealersModelValueChangedSubscription.unsubscribe();
}

onCancel() {}

onGoToStep(step: number) {
this.stepper.selectedIndex = step;
}
Expand Down Expand Up @@ -218,7 +209,7 @@ export class MetalDealersWizardComponent extends BaseWizardComponent implements
if (!this.stepConsent.isFormValid()) return;

this.router.navigateByUrl(
MetalDealersAndRecyclersRoutes.pathMetalDealersAndRecyclers(
MetalDealersAndRecyclersRoutes.path(
MetalDealersAndRecyclersRoutes.METAL_DEALERS_AND_RECYCLERS_REGISTRATION_RECEIVED
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ import { LicenceChildStepperStepComponent, UtilService } from '@app/core/service
I HEREBY CERTIFY THAT I have read and understand all portions of this application form. The
information set out by me in this application is true and correct to the best of my knowledge and
belief. I have read and understand the Metal Dealers and Recyclers Act and Regulations and I am aware
of and understand the terms and conditions of registration and the conditions that may be placed on me
as a registered business under the Act.
of and understand the
<a
aria-label="Terms and Conditions"
href="https://www.bclaws.gov.bc.ca/civix/document/id/complete/statreg/00_11022_01#section11"
target="_blank"
>terms and conditions</a
>
of registration and the conditions that may be placed on me as a registered business under the Act.
</mat-checkbox>
<mat-error
class="mat-option-error"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class MetalDealersAndRecyclersRoutes {
public static readonly METAL_DEALERS_AND_RECYCLERS_REGISTER = 'register';
public static readonly METAL_DEALERS_AND_RECYCLERS_REGISTRATION_RECEIVED = 'received';

public static pathMetalDealersAndRecyclers(route: string | null = null): string {
public static path(route: string | null = null): string {
return route
? `/${MetalDealersAndRecyclersRoutes.MODULE_PATH}/${route}`
: `/${MetalDealersAndRecyclersRoutes.MODULE_PATH}`;
Expand Down

0 comments on commit 043c7d4

Please sign in to comment.