Fix references to public report reporter contact methods

This commit is contained in:
Eli Ribble 2026-05-16 18:12:28 +00:00
parent 1c8b13b31e
commit 0256b9bb42
No known key found for this signature in database
6 changed files with 46 additions and 30 deletions

View file

@ -248,8 +248,8 @@ const hasCompleteResponse = computed(() => {
r.images.length > 0 ||
r.permission_type == PermissionType.GRANTED ||
r.reporter.name ||
r.reporter.phones.length ||
r.reporter.emails.length
r.reporter.phone.e164 != "" ||
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.number"
v-model="modelValue.reporter.phone.e164"
/>
</div>
@ -72,7 +72,7 @@
class="form-check-input"
type="checkbox"
id="can-text"
v-model="modelValue.reporter.can_sms"
v-model="modelValue.reporter.phone.can_sms"
/>
<label class="form-check-label" for="can-text">
You may send text messages to this number

View file

@ -199,11 +199,14 @@
<div
class="summary-value"
v-if="
modelValue.reporter?.phone || modelValue.reporter?.phone != ''
modelValue.reporter?.phone ||
modelValue.reporter?.phone.e164 != ''
"
>
{{ modelValue.reporter.phone }}
<small class="text-muted" v-if="modelValue.reporter?.can_sms"
<small
class="text-muted"
v-if="modelValue.reporter?.phone.can_sms"
>(texting OK)</small
>
</div>