diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index 34b431089..756e9e16e 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -137,7 +137,7 @@

Claim

-
{{ util.inspect(veriClaim, false, null) }}
+
{{ yamlVeriClaim }}

Full Claim

@@ -158,7 +158,7 @@
-
{{ util.inspect(fullClaim, false, null) }}
+
{{ yamlFullClaim }}
@@ -186,6 +186,7 @@ import * as serverUtil from "@/libs/endorserServer"; import QuickNav from "@/components/QuickNav.vue"; import EntityIcon from "@/components/EntityIcon.vue"; import { Account } from "@/db/tables/accounts"; +import * as yaml from 'js-yaml'; interface Notification { group: string; @@ -300,7 +301,8 @@ export default class ClaimView extends Vue { try { const resp = await this.axios.get(url, { headers }); if (resp.status === 200) { - this.veriClaim = resp.data; + this.veriClaim = resp.json; + this.yamlVeriClaim = yaml.dumps(resp.json); } else { // actually, axios typically throws an error so we never get here console.log("Error getting claim:", resp); @@ -379,7 +381,8 @@ export default class ClaimView extends Vue { try { const resp = await this.axios.get(url, { headers }); if (resp.status === 200) { - this.fullClaim = resp.data; + this.fullClaim = resp.json; + this.yamlFullClaim = yaml.dump(resp.json); } else { // actually, axios typically throws an error so we never get here console.log("Error getting full claim:", resp);