Skip to content

Commit

Permalink
feat(cb2-0000): comment out method
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonT95 committed Nov 29, 2024
1 parent 69314f3 commit 95e04d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h1>
label="Speed limiter exempt"
formControlName="techRecord_speedLimiterMrk"
[options]="EXEMPT_OR_NOT_OPTIONS"
[tags]="[showTagBasedOnVehicleTypes([VehicleTypes.HGV], { colour: TagType.PURPLE, label: TagTypeLabels.PLATES })]"
[tags]="[{ colour: TagType.PURPLE, label: TagTypeLabels.PLATES }]"
></govuk-form-group-radio>

<!-- Tacho exempt -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
import { VehicleConfiguration } from '@models/vehicle-configuration.enum';
import { V3TechRecordModel, VehicleSizes, VehicleTypes } from '@models/vehicle-tech-record.model';
import { Store } from '@ngrx/store';
import { CustomTag, FormNodeWidth, TagTypeLabels } from '@services/dynamic-forms/dynamic-form.types';
import { FormNodeWidth, TagTypeLabels } from '@services/dynamic-forms/dynamic-form.types';
import { TechnicalRecordService } from '@services/technical-record/technical-record.service';
import { ReplaySubject } from 'rxjs';

Expand Down Expand Up @@ -409,7 +409,7 @@ export class VehicleSectionEditComponent implements OnInit, OnDestroy {
);
}

showTagBasedOnVehicleTypes(vehicleTypes: VehicleTypes[], tagsToDisplay: CustomTag): CustomTag {
if (vehicleTypes.includes(this.getVehicleType())) return tagsToDisplay;
}
// showTagBasedOnVehicleTypes(vehicleTypes: VehicleTypes[], tagsToDisplay: CustomTag): CustomTag {
// if (vehicleTypes.includes(this.getVehicleType())) return tagsToDisplay;
// }
}

0 comments on commit 95e04d6

Please sign in to comment.