Skip to content

Commit

Permalink
Code Review Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Haselhan committed Oct 31, 2023
1 parent 2a66fad commit 62ad1c9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ApplicationDecisionComponentDto } from '../../../../../../services/appl

import { ExpiryDateComponent } from './expiry-date.component';

describe('TurpComponent', () => {
describe('ExpiryDateComponent', () => {
let component: ExpiryDateComponent;
let fixture: ComponentFixture<ExpiryDateComponent>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
ProposedDecisionLotDto,
RosoDecisionComponentDto,
SubdDecisionComponentDto,
TurpDecisionComponentDto,
ExpiryDateDecisionComponentDto,
} from '../../../../../../../services/application/decision/application-decision-v2/application-decision-v2.dto';
import { ToastService } from '../../../../../../../services/toast/toast.service';
import { AG_CAP_OPTIONS, AG_CAP_SOURCE_OPTIONS } from '../../../../../../../shared/dto/ag-cap.types.dto';
Expand Down Expand Up @@ -41,7 +41,7 @@ export class DecisionComponentComponent implements OnInit {
nfuSubType = new FormControl<string | null>(null, [Validators.required]);
endDate = new FormControl<Date | null>(null, [Validators.required]);

// expiry-date & cove
// turp & cove
expiryDate = new FormControl<Date | null>(null);

// pofo, pfrs
Expand Down Expand Up @@ -285,7 +285,7 @@ export class DecisionComponentComponent implements OnInit {
};
}

private getExpiryDateDataChange(): TurpDecisionComponentDto {
private getExpiryDateDataChange(): ExpiryDateDecisionComponentDto {
return {
expiryDate: this.expiryDate.value ? formatDateForApi(this.expiryDate.value) : null,
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form [formGroup]="form" class="turp-component-form">
<form [formGroup]="form">
<div class="grid-2">
<mat-form-field appearance="outline">
<mat-label>ALR Area Impacted (ha)</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ExpiryDateInputComponent } from './expiry-date-input.component';

describe('TurpInputComponent', () => {
describe('ExpiryDateInputComponent', () => {
let component: ExpiryDateInputComponent;
let fixture: ComponentFixture<ExpiryDateInputComponent>;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form [formGroup]="form" class="turp-component-form">
<form [formGroup]="form">
<div class="grid">
<mat-form-field appearance="outline">
<mat-label>ALR Area Impacted (ha)</mat-label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export interface NfuDecisionComponentDto {
endDate?: number | null;
}

export interface TurpDecisionComponentDto {
export interface ExpiryDateDecisionComponentDto {
expiryDate?: number | null;
}

Expand Down Expand Up @@ -169,7 +169,7 @@ export interface InclExclDecisionComponentDto {

export interface ApplicationDecisionComponentDto
extends NfuDecisionComponentDto,
TurpDecisionComponentDto,
ExpiryDateDecisionComponentDto,
PofoDecisionComponentDto,
RosoDecisionComponentDto,
NaruDecisionComponentDto,
Expand Down

0 comments on commit 62ad1c9

Please sign in to comment.