From 86895e4844a2ede08f4c2840e084969d88d68c1f Mon Sep 17 00:00:00 2001 From: Vladimir Date: Wed, 24 Apr 2024 13:35:25 +0300 Subject: [PATCH] Change the formatLog filter to limit the length of the value --- web/src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/main.js b/web/src/main.js index fd96ddfcc..ac0501130 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -15,7 +15,10 @@ Vue.config.productionTip = false; Vue.filter('formatDate', (value) => (value ? moment(String(value)).fromNow() : '—')); Vue.filter('formatTime', (value) => (value ? moment(String(value)).format('LTS') : '—')); -Vue.filter('formatLog', (value) => (value ? convert.toHtml(String(value)) : value)); +Vue.filter('formatLog', (value) => { + if (value.length > 1000) return value; + return (value ? convert.toHtml(String(value)) : value); +}); Vue.filter('formatMilliseconds', (value) => { if (value == null || value === '') {