Skip to content

Commit a4d2220

Browse files
committed
Indicating when the body wasn't stored for the audited message
1 parent f521388 commit a4d2220

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Frontend/src/components/messages/BodyView.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ const body = computed(() => bodyState.value.data.value);
2525
<div v-if="bodyState.not_found" class="alert alert-info">Could not find the message body. This could be because the message URL is invalid or the corresponding message was processed and is no longer tracked by ServiceControl.</div>
2626
<div v-else-if="bodyState.failed_to_load" class="alert alert-info">Message body unavailable.</div>
2727
<LoadingSpinner v-else-if="bodyState.loading" />
28+
<div v-else-if="body === ''" class="alert alert-info">
29+
Body was too large and not stored. Edit <a href="https://docs.particular.net/servicecontrol/audit-instances/configuration#performance-tuning-servicecontrol-auditmaxbodysizetostore">ServiceControl/MaxBodySizeToStore</a> to be larger in the
30+
ServiceControl configuration.
31+
</div>
2832
<CodeEditor v-else-if="body !== undefined && contentType.isSupported" :model-value="body" :language="contentType.language" :read-only="true" :show-gutter="true"></CodeEditor>
2933
<div v-else-if="body && !contentType.isSupported" class="alert alert-warning">Message body cannot be displayed because content type "{{ bodyState.data.content_type }}" is not supported.</div>
3034
</div>

0 commit comments

Comments
 (0)