Only show communications if we have a method to do them.

This commit is contained in:
Eli Ribble 2026-03-14 16:23:09 +00:00
parent 4c71cab973
commit 299b72eac3
No known key found for this signature in database

View file

@ -764,39 +764,53 @@
<hr /> <hr />
<!-- Message Reporter --> <!-- Message Reporter -->
<div class="mb-3"> <template
<h6><i class="bi bi-chat-dots"></i> Message Reporter</h6> x-if="!(this.selectedCommunication?.public_report.reporter.has_email && this.selectedCommunication?.public_report.reporter.has_phone)"
<div class="mb-2"> >
<label class="form-label small text-muted" <div class="mb-3">
>Quick Templates</label <h6>
> <i class="bi bi-chat-dots"></i> No Reporter Communications
<select Available
class="form-select form-select-sm" </h6>
@change="applyMessageTemplate($event.target.value)"
>
<option value="">Select a template...</option>
<option value="received">Report Received</option>
<option value="scheduled">Service Scheduled</option>
<option value="completed">Service Completed</option>
<option value="need_info">Need More Information</option>
</select>
</div> </div>
<textarea </template>
class="form-control mb-2" <template
rows="5" x-if="this.selectedCommunication?.public_report.reporter.has_email || this.selectedCommunication?.public_report.reporter.has_phone"
x-model="messageText" >
placeholder="Type your message to the reporter..." <div class="mb-3">
></textarea> <h6><i class="bi bi-chat-dots"></i> Message Reporter</h6>
<div class="d-grid"> <div class="mb-2">
<button <label class="form-label small text-muted"
class="btn btn-primary" >Quick Templates</label
@click="sendMessage()" >
:disabled="!messageText.trim()" <select
> class="form-select form-select-sm"
<i class="bi bi-send me-2"></i>Send Message @change="applyMessageTemplate($event.target.value)"
</button> >
<option value="">Select a template...</option>
<option value="received">Report Received</option>
<option value="scheduled">Service Scheduled</option>
<option value="completed">Service Completed</option>
<option value="need_info">Need More Information</option>
</select>
</div>
<textarea
class="form-control mb-2"
rows="5"
x-model="messageText"
placeholder="Type your message to the reporter..."
></textarea>
<div class="d-grid">
<button
class="btn btn-primary"
@click="sendMessage()"
:disabled="!messageText.trim()"
>
<i class="bi bi-send me-2"></i>Send Message
</button>
</div>
</div> </div>
</div> </template>
<hr /> <hr />