Skip to content

Commit

Permalink
Change name of field from "Street" to "Address"
Browse files Browse the repository at this point in the history
- Change table headers for the corresponding entities
  • Loading branch information
getwithashish committed Sep 19, 2023
1 parent 11dca3d commit cf340af
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Tithe-Vue/src/components/AddressForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -391,13 +391,14 @@ defineExpose({
</script>
<template>
<FormField label="Street">
<!-- Changed street to address -->
<FormField label="Address">
<SearchBox
v-model="street"
:load-options="loadStreets"
:create-option="createStreetOption"
:reload-method="false"
entity-name="Street"
entity-name="Address"
bg-color="#1e293b"
/>
</FormField>
Expand Down
12 changes: 6 additions & 6 deletions Tithe-Vue/src/externalized-data/tableData.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ export const familyPageTableTabTitle = [

export const foraneTableHeaders = [
{ name: "Name", dataKey: "foraneName" },
{ name: "Building", dataKey: "address.buildingName" },
{ name: "Street", dataKey: "address.street.streetName" },
// { name: "Building", dataKey: "address.buildingName" },
{ name: "Address", dataKey: "address.street.streetName" },
{ name: "City", dataKey: "address.city.cityName" },
];

export const parishTableHeaders = [
{ name: "Name", dataKey: "parishName" },
{ name: "Building", dataKey: "address.buildingName" },
{ name: "Street", dataKey: "address.street.streetName" },
// { name: "Building", dataKey: "address.buildingName" },
{ name: "Address", dataKey: "address.street.streetName" },
{ name: "City", dataKey: "address.city.cityName" },
{ name: "Forane", dataKey: "forane.foraneName" },
];
Expand All @@ -47,8 +47,8 @@ export const koottaymaTableHeaders = [

export const familyTableHeaders = [
{ name: "Name", dataKey: "familyName" },
{ name: "Building", dataKey: "address.buildingName" },
{ name: "Street", dataKey: "address.street.streetName" },
// { name: "Building", dataKey: "address.buildingName" },
{ name: "Address", dataKey: "address.street.streetName" },
{ name: "City", dataKey: "address.city.cityName" },
{ name: "Koottayma", dataKey: "koottayma.koottaymaName" },
{ name: "Parish", dataKey: "koottayma.parish.parishName" },
Expand Down

0 comments on commit cf340af

Please sign in to comment.