settings UI: site base url + alert webhook fields
This commit is contained in:
@@ -108,6 +108,9 @@ export function useSystemSettings() {
|
|||||||
smtp_from_address: '',
|
smtp_from_address: '',
|
||||||
smtp_from_name: 'ShopDB',
|
smtp_from_name: 'ShopDB',
|
||||||
alert_recipients: '',
|
alert_recipients: '',
|
||||||
|
site_base_url: '',
|
||||||
|
alert_webhook_url: '',
|
||||||
|
alert_webhook_format: 'teams',
|
||||||
// Audit
|
// Audit
|
||||||
audit_retention_days: 90,
|
audit_retention_days: 90,
|
||||||
// Floor map blueprint (per-facility)
|
// Floor map blueprint (per-facility)
|
||||||
|
|||||||
@@ -137,6 +137,50 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="setting-row full-width">
|
||||||
|
<label>
|
||||||
|
<span>Site Base URL</span>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
v-model="settings.site_base_url"
|
||||||
|
placeholder="https://tsgwp00525.wjs.geaerospace.net/ops"
|
||||||
|
@blur="saveSetting('site_base_url', settings.site_base_url)"
|
||||||
|
:disabled="saving"
|
||||||
|
>
|
||||||
|
<small class="input-hint">Public URL of this site; used to build links in emails</small>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="setting-row full-width">
|
||||||
|
<label>
|
||||||
|
<span>Alert Webhook URL</span>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
v-model="settings.alert_webhook_url"
|
||||||
|
placeholder="https://... (Microsoft Teams Incoming Webhook or Workflow)"
|
||||||
|
@blur="saveSetting('alert_webhook_url', settings.alert_webhook_url)"
|
||||||
|
:disabled="saving"
|
||||||
|
>
|
||||||
|
<small class="input-hint">Alerts also POST here (Teams, etc.). Blank = email only.</small>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="setting-row full-width">
|
||||||
|
<label>
|
||||||
|
<span>Alert Webhook Format</span>
|
||||||
|
<select
|
||||||
|
v-model="settings.alert_webhook_format"
|
||||||
|
@change="saveSetting('alert_webhook_format', settings.alert_webhook_format)"
|
||||||
|
:disabled="saving"
|
||||||
|
>
|
||||||
|
<option value="teams">Teams - Incoming Webhook (MessageCard)</option>
|
||||||
|
<option value="adaptivecard">Teams - Workflow (Adaptive Card)</option>
|
||||||
|
<option value="json">Generic JSON</option>
|
||||||
|
</select>
|
||||||
|
<small class="input-hint">Payload format for the webhook above</small>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="status-indicator">
|
<div class="status-indicator">
|
||||||
<span class="status-dot" :class="smtpStatus"></span>
|
<span class="status-dot" :class="smtpStatus"></span>
|
||||||
<span>{{ smtpMessage }}</span>
|
<span>{{ smtpMessage }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user