Fix populating water report from ID, make ContactSimple
ContactSimple is the replacement for ContactReporter, which was the simplified form of a contact from a report. I made the name more generic and use it in the general report structures for consistency.
This commit is contained in:
parent
75d0283453
commit
5e103f46a0
14 changed files with 103 additions and 108 deletions
|
|
@ -248,7 +248,7 @@ const hasCompleteResponse = computed(() => {
|
|||
r.images.length > 0 ||
|
||||
r.permission_type == PermissionType.GRANTED ||
|
||||
r.reporter.name ||
|
||||
r.reporter.phone.e164 != "" ||
|
||||
r.reporter.phone.number != "" ||
|
||||
r.reporter.email
|
||||
) {
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
id="contact-phone"
|
||||
name="phone"
|
||||
placeholder="(555) 123-4567"
|
||||
v-model="modelValue.reporter.phone.e164"
|
||||
v-model="modelValue.reporter.phone.number"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@
|
|||
class="summary-value"
|
||||
v-if="
|
||||
modelValue.reporter?.phone ||
|
||||
modelValue.reporter?.phone.e164 != ''
|
||||
modelValue.reporter?.phone.number != ''
|
||||
"
|
||||
>
|
||||
{{ modelValue.reporter.phone }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue