Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CB2-15820): add plates tag to tyre use code #1707

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
formControlName="techRecord_tyreUseCode"
[width]="FormNodeWidth.UNSET"
[options]="HGV_TYRE_USE_CODE_OPTIONS"
[tags]="[{ colour: TagType.PURPLE, label: TagTypeLabels.PLATES }]"
></govuk-form-group-select>

<!-- Tyre Use Code (TRL) -->
Expand All @@ -159,5 +160,6 @@
formControlName="techRecord_tyreUseCode"
[width]="FormNodeWidth.UNSET"
[options]="TRL_TYRE_USE_CODE_OPTIONS"
[tags]="[{ colour: TagType.PURPLE, label: TagTypeLabels.PLATES }]"
></govuk-form-group-select>
</div>
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TagType } from '@/src/app/components/tag/tag.component';
import {
FITMENR_CODE_OPTIONS,
HGV_TYRE_USE_CODE_OPTIONS,
Expand All @@ -9,7 +10,7 @@ import {
ReferenceDataTyre,
ReferenceDataTyreLoadIndex,
} from '@/src/app/models/reference-data.model';
import { FormNodeWidth } from '@/src/app/services/dynamic-forms/dynamic-form.types';
import { FormNodeWidth, TagTypeLabels } from '@/src/app/services/dynamic-forms/dynamic-form.types';
import { ReferenceDataService } from '@/src/app/services/reference-data/reference-data.service';
import { addAxle, removeAxle, updateScrollPosition } from '@/src/app/store/technical-records';
import { ViewportScroller } from '@angular/common';
Expand All @@ -32,6 +33,8 @@ import { ReplaySubject, combineLatest, filter, takeUntil } from 'rxjs';
export class TyresSectionEditComponent implements OnInit, OnDestroy {
protected readonly VehicleTypes = VehicleTypes;
protected readonly FormNodeWidth = FormNodeWidth;
protected readonly TagType = TagType;
protected readonly TagTypeLabels = TagTypeLabels;
protected readonly HGV_TYRE_USE_CODE_OPTIONS = HGV_TYRE_USE_CODE_OPTIONS;
protected readonly TRL_TYRE_USE_CODE_OPTIONS = TRL_TYRE_USE_CODE_OPTIONS;
protected readonly SPEED_CATEGORY_SYMBOL_OPTIONS = SPEED_CATEGORY_SYMBOL_OPTIONS;
Expand Down
Loading