Fix issue that items got displayed twice in JSON-View

This commit is contained in:
Jan Oberhauser
2019-11-23 10:23:26 +01:00
parent ace367478a
commit 862b693c0a
2 changed files with 15 additions and 10 deletions

View File

@@ -95,12 +95,12 @@
</tr>
</table>
</div>
<json-viewer
<json-tree
v-else-if="displayMode === 'JSON'"
:data="jsonData"
:level="10"
class="json-data"
:value="jsonData"
:expand-depth=10
></json-viewer>
/>
</div>
<div v-else-if="displayMode === 'Binary'">
<div v-if="binaryData.length === 0" class="no-data">
@@ -163,7 +163,7 @@
<script lang="ts">
import Vue from 'vue';
// @ts-ignore
import JsonViewer from 'vue-json-viewer';
import JsonTree from 'vue-json-tree';
import {
GenericValue,
IBinaryData,
@@ -201,7 +201,7 @@ export default mixins(
name: 'RunData',
components: {
BinaryDataDisplay,
JsonViewer,
JsonTree,
},
data () {
return {
@@ -573,10 +573,15 @@ export default mixins(
}
.json-data {
background: none;
.json-tree {
color: $--custom-input-font;
.jv-code {
padding: 0;
.json-tree-value-number {
color: #b03030;
}
.json-tree-value-string {
color: #8aab1a;
}
}
}