show changeset in json view

This commit is contained in:
Jan Prochazka
2021-04-05 18:39:09 +02:00
parent ccb1c26905
commit e4e01c6e1e
12 changed files with 126 additions and 37 deletions

View File

@@ -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;