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 16, 2024
1 parent eebd19d commit 20a99d5
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 218 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
8 changes: 2 additions & 6 deletions frontend/src/components/housing/submission/SubmissionForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { applicantValidator, assignedToValidator, latitudeValidator, longitudeVa
import type { Ref } from 'vue';
import type { IInputEvent } from '@/interfaces';
import type { Submission, User } from '@/types';
import { omit, setEmptyStringsToNull } from '@/utils/utils';
import { concatenateAddress, omit, setEmptyStringsToNull } from '@/utils/utils';
// Interfacefs
interface SubmissionForm extends Submission {
Expand Down Expand Up @@ -218,12 +218,8 @@ 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);
const locationAddressStr = locationAddress.join(', ');
if (setFieldValue) setFieldValue('locationAddress', locationAddressStr);
return locationAddressStr;
Expand Down
Loading

0 comments on commit 20a99d5

Please sign in to comment.