use existing i8n, change disable to multiline

This commit is contained in:
ryana 2026-01-20 08:15:14 +08:00
parent 22bc222f4d
commit c0a5ea8be9
2 changed files with 4 additions and 3 deletions

View File

@ -49,9 +49,9 @@
<!-- eslint-disable-next-line vue/no-v-html-->
<div class="incident-content mt-1" v-html="getIncidentHTML(incident.content)"></div>
<div class="incident-meta text-muted small mt-2">
<div>{{ $t("Created") }}: {{ datetime(incident.createdDate) }}</div>
<div>{{ $t("createdAt", { date: datetime(incident.createdDate) }) }}</div>
<div v-if="incident.lastUpdatedDate">
{{ $t("Last Updated") }}: {{ datetime(incident.lastUpdatedDate) }}
{{ $t("lastUpdatedAt", { date: datetime(incident.lastUpdatedDate) }) }}
</div>
</div>
</div>

View File

@ -328,12 +328,13 @@
data-testid="incident"
>
<h4 class="alert-heading" data-testid="incident-title">{{ activeIncident.title }}</h4>
<!-- eslint-disable-next-line vue/no-v-html -->
<!-- eslint-disable vue/no-v-html -->
<div
class="content"
data-testid="incident-content"
v-html="getIncidentHTML(activeIncident.content)"
></div>
<!-- eslint-enable vue/no-v-html -->
<!-- Incident Date -->
<div class="date mt-3">