Skip to content

Commit

Permalink
Merge pull request #99 from bcgov/extractfixes
Browse files Browse the repository at this point in the history
Extractfixes
  • Loading branch information
michaeltangbcgov authored Nov 16, 2023
2 parents 454c277 + 0c39543 commit 1d21d2d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
7 changes: 7 additions & 0 deletions backend/src/routes/district-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,13 @@ async function getDistrict(req, res) {
valueType: "STRING",
condition: "AND",
},
{
key: "facilityTypeCode",
operation: "neq",
value: "SUMMER",
valueType: "STRING",
condition: "AND",
},
],
},
];
Expand Down
4 changes: 3 additions & 1 deletion backend/src/routes/institute-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ async function getDistrictList(req, res) {
.get(url, { headers: { Authorization: `Bearer ${req.accessToken}` } })
.then((response) => {
//const districtList = response.data;
const districtList = createList(response.data, districtListOptions);
const filteredDistrictList = response.data.filter(district => !["YUKON", "OFFSHORE", "PSI"].includes(district.districtRegionCode));
const districtList = createList(filteredDistrictList, districtListOptions);

listCache.set("districtlist", districtList);
res.json(districtList);
log.info(req.url);
Expand Down
9 changes: 7 additions & 2 deletions frontend/src/views/DistrictView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,16 @@ onMounted(async () => {
</template>

<template v-slot:item.phoneNumber="{ item }">
{{ formatPhoneNumber(item.phoneNumber) }}
<div style="min-width: 125px">
<!-- Adjust the min-width value as needed -->
{{ formatPhoneNumber(item.phoneNumber) }}
</div>
</template>

<template v-slot:item.faxNumber="{ item }">
{{ formatPhoneNumber(item.faxNumber) }}
<div style="min-width: 125px">
{{ formatPhoneNumber(item.faxNumber) }}
</div>
</template>
</v-data-table>
</v-window-item>
Expand Down

0 comments on commit 1d21d2d

Please sign in to comment.