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:
Eli Ribble 2026-05-21 03:23:10 +00:00
parent 75d0283453
commit 5e103f46a0
No known key found for this signature in database
14 changed files with 103 additions and 108 deletions

View file

@ -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;

View file

@ -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>

View file

@ -200,7 +200,7 @@
class="summary-value"
v-if="
modelValue.reporter?.phone ||
modelValue.reporter?.phone.e164 != ''
modelValue.reporter?.phone.number != ''
"
>
{{ modelValue.reporter.phone }}