Skip to content

Commit

Permalink
VA-16652: Check extension for other va-telephone instances
Browse files Browse the repository at this point in the history
  • Loading branch information
maxx1128 committed Feb 28, 2024
1 parent 484c04d commit 9263953
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 7 additions & 2 deletions src/site/includes/vba_facilities/service_location.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
Main Phone
</h5>

<va-telephone contact="{{ facilityPhone }}" message-aria-describedby="Main Phone" />
{% assign separatedFacilityPhone = facilityPhone | separatePhoneNumberExtension %}
<va-telephone
contact="{{ separatedFacilityPhone.phoneNumber }}"
extension="{{ separatedFacilityPhone.extension }}"
message-aria-describedby="Main Phone"
/>
</div>
{% elsif location.entity.fieldPhone %}
{% for phoneObj in location.entity.fieldPhone %}
Expand Down Expand Up @@ -136,4 +141,4 @@
</p>
</div>
{% endif %}
</div>
</div>
6 changes: 5 additions & 1 deletion src/site/layouts/vba_facility.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@
<div class="vads-u-margin-bottom--1">
<p class="vads-u-margin-top--0">
<strong>Main phone:</strong>
<va-telephone contact="{{fieldPhoneNumber}}" />
{% assign separatedFieldPhoneNumber = fieldPhoneNumber | separatePhoneNumberExtension %}
<va-telephone
contact="{{ separatedFieldPhoneNumber.phoneNumber }}"
extension="{{ separatedFieldPhoneNumber.extension }}"
/>
</p>
</div>
{% endif %}
Expand Down

0 comments on commit 9263953

Please sign in to comment.