From 26db4a5e7a17ed9f21ac9b99ba1198199f8df4fb Mon Sep 17 00:00:00 2001 From: ma0068 Date: Mon, 20 Apr 2026 09:31:52 +0200 Subject: [PATCH 1/2] adding redraw tabulator and fallback to avoid empty column --- public/js/components/Messages/Details/TableMessages.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/components/Messages/Details/TableMessages.js b/public/js/components/Messages/Details/TableMessages.js index aefa8bb2a..02b941fcf 100644 --- a/public/js/components/Messages/Details/TableMessages.js +++ b/public/js/components/Messages/Details/TableMessages.js @@ -195,7 +195,7 @@ export default { ], formatter: (cell, formatterParams) => { const key = formatterParams[cell.getValue()]; - return this.$p.t('messages', key); + return this.$p?.t?.('messages', key) || key; }, }, { @@ -307,6 +307,7 @@ export default { handler: async() => { await this.$p.loadCategory(['global', 'person', 'stv', 'messages', 'ui', 'notiz']); + this.$refs.table.tabulator.redraw(true); //for immediate translation of status const setHeader = (field, text) => { const col = this.$refs.table.tabulator.getColumn(field); if (!col) return; From 50b229090bcf3b86f560751db2de22a7db4da522 Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Tue, 5 May 2026 13:04:11 +0200 Subject: [PATCH 2/2] prefetch phrases and then render filter component instead of redrawing the table --- .../js/components/Messages/Details/TableMessages.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/public/js/components/Messages/Details/TableMessages.js b/public/js/components/Messages/Details/TableMessages.js index 02b941fcf..d523d5362 100644 --- a/public/js/components/Messages/Details/TableMessages.js +++ b/public/js/components/Messages/Details/TableMessages.js @@ -30,6 +30,7 @@ export default { personId: null, layoutColumnsOnNewData: false, height: '400', + arePhrasesLoaded: false } }, methods: { @@ -305,9 +306,6 @@ export default { { event: 'tableBuilt', handler: async() => { - await this.$p.loadCategory(['global', 'person', 'stv', 'messages', 'ui', 'notiz']); - - this.$refs.table.tabulator.redraw(true); //for immediate translation of status const setHeader = (field, text) => { const col = this.$refs.table.tabulator.getColumn(field); if (!col) return; @@ -358,6 +356,12 @@ export default { });*/ }, created(){ + this.$p + .loadCategory(['global', 'person', 'stv', 'messages', 'ui', 'notiz']) + .then(() => { + this.arePhrasesLoaded = true; + }); + if(this.typeId != 'person_id' && Array.isArray(this.id) && this.id.length === 1) { const params = { id: this.id, @@ -382,6 +386,7 @@ export default {