WIP: creating contact resource
Some checks failed
/ golint (push) Has been cancelled

This commit is contained in:
Eli Ribble 2026-05-15 20:10:14 +00:00
parent 8b203908a0
commit 725945d95c
No known key found for this signature in database
22 changed files with 381 additions and 135 deletions

View file

@ -248,10 +248,8 @@ const hasCompleteResponse = computed(() => {
r.images.length > 0 ||
r.permission_type == PermissionType.GRANTED ||
r.reporter.name ||
r.reporter.phone ||
r.reporter.has_phone ||
r.reporter.email ||
r.reporter.has_email
r.reporter.phones.length ||
r.reporter.emails.length
) {
return true;
}

View file

@ -61,7 +61,7 @@
id="contact-phone"
name="phone"
placeholder="(555) 123-4567"
v-model="modelValue.reporter.phone"
v-model="modelValue.reporter.phone.number"
/>
</div>
@ -92,7 +92,7 @@
<div
class="alert alert-primary"
role="alert"
v-if="modelValue.reporter.has_email"
v-if="modelValue.reporter.email != ''"
>
You've already added an email address to this report. If you alter the
email below, it will replace the current email address.

View file

@ -199,7 +199,7 @@
<div
class="summary-value"
v-if="
modelValue.reporter?.phone || modelValue.reporter?.has_phone
modelValue.reporter?.phone || modelValue.reporter?.phone != ''
"
>
{{ modelValue.reporter.phone }}
@ -216,7 +216,7 @@
<div
class="summary-value"
v-if="
modelValue.reporter?.email || modelValue.reporter?.has_email
modelValue.reporter?.email || modelValue.reporter?.email != ''
"
>
{{ modelValue.reporter?.email }}