mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
adding redraw tabulator and fallback to avoid empty column
This commit is contained in:
@@ -195,7 +195,7 @@ export default {
|
|||||||
],
|
],
|
||||||
formatter: (cell, formatterParams) => {
|
formatter: (cell, formatterParams) => {
|
||||||
const key = formatterParams[cell.getValue()];
|
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() => {
|
handler: async() => {
|
||||||
await this.$p.loadCategory(['global', 'person', 'stv', 'messages', 'ui', 'notiz']);
|
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 setHeader = (field, text) => {
|
||||||
const col = this.$refs.table.tabulator.getColumn(field);
|
const col = this.$refs.table.tabulator.getColumn(field);
|
||||||
if (!col) return;
|
if (!col) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user