mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 18:16:00 +00:00
show changeset in json view
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script>
|
||||
import { getContext, setContext } from 'svelte';
|
||||
import contextKey from './context';
|
||||
import JSONArrow from './JSONArrow.svelte';
|
||||
import JSONNode from './JSONNode.svelte';
|
||||
import JSONKey from './JSONKey.svelte';
|
||||
@@ -10,8 +9,8 @@
|
||||
|
||||
$: stack = value.stack.split('\n');
|
||||
|
||||
const context = getContext(contextKey);
|
||||
setContext(contextKey, { ...context, colon: ':' })
|
||||
const context = getContext('json-tree-context-key');
|
||||
setContext('json-tree-context-key', { ...context, colon: ':' })
|
||||
|
||||
$: if (!isParentExpanded) {
|
||||
expanded = false;
|
||||
|
||||
Reference in New Issue
Block a user