diff --git a/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.html b/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.html index 846e5745d..ba5654f31 100644 --- a/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.html +++ b/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.html @@ -134,7 +134,7 @@

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 }]" > diff --git a/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.ts b/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.ts index b0c6005a2..b2f28e5d3 100644 --- a/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.ts +++ b/src/app/forms/custom-sections/vehicle-section/vehicle-section-edit/vehicle-section-edit.component.ts @@ -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'; @@ -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; + // } }