Add base64 handling for binary data in filter and grid components

This commit is contained in:
Stela Augustinova
2025-10-29 15:08:57 +01:00
parent aa7fb74312
commit 417334d140
5 changed files with 16 additions and 4 deletions

View File

@@ -15,6 +15,7 @@
import _ from 'lodash';
import { apiCall } from '../utility/api';
import ErrorInfo from '../elements/ErrorInfo.svelte';
import { base64ToHex } from 'dbgate-tools';
export let onConfirm;
export let conid;
@@ -112,7 +113,7 @@
{
fieldName: 'value',
header: 'Value',
formatter: row => (row.value == null ? '(NULL)' : row.value),
formatter: row => (row.value == null ? '(NULL)' : row.value?.$binary?.base64 ? base64ToHex(row.value.$binary.base64) : row.value),
},
]}
>