Pass keyType to DbKeyValueDetail for AceEditor mode

This commit is contained in:
Stela Augustinova
2025-12-10 15:55:24 +01:00
parent 51d8fa7268
commit 52f1809d22
2 changed files with 3 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
export let columnTitle;
export let value;
export let onChangeValue = null;
export let keyType = null;
</script>
<div class="colnamewrap">
@@ -33,6 +34,7 @@
<AceEditor
readOnly={!onChangeValue}
{value}
mode={keyType === 'JSON' ? 'json' : undefined}
on:input={e => {
onChangeValue?.(e.detail);
}}