Skip to content

Commit

Permalink
revamped submissioons table and gave required functionality and style…
Browse files Browse the repository at this point in the history
… to each column, based on PADS-189 comment
  • Loading branch information
qhanson55 committed Jul 17, 2024
1 parent eebd19d commit db52c3f
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 217 deletions.
8 changes: 4 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"pinia-plugin-persistedstate": "^3.2.1",
"primeflex": "^3.3.1",
"primeicons": "^6.0.1",
"primevue": "3.52.0",
"primevue": "3.53.0",
"proj4": "^2.11.0",
"qrcode.vue": "^3.4.1",
"quill": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/housing/submission/SubmissionForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ const onSubmit = async (values: any) => {
};
function updateLocationAddress(values: any, setFieldValue?: Function) {
const locationAddress = [];
if (values.streetAddress?.length) locationAddress.push(values.streetAddress);
if (values.locality?.length) locationAddress.push(values.locality);
if (values.province?.length) locationAddress.push(values.province);
// const locationAddressStr = concatenateAddress(values.streetAddress, values.locality, values.province);
const locationAddressStr = [values.streetAddress, values.locality, values.province]
.filter((str) => str?.trim())
.join(', ');
const locationAddressStr = locationAddress.join(', ');
if (setFieldValue) setFieldValue('locationAddress', locationAddressStr);
return locationAddressStr;
Expand Down
Loading

0 comments on commit db52c3f

Please sign in to comment.