diff --git a/src/api/bcd.js b/src/api/bcd.js index 515d3ad5..5b6dd1cf 100644 --- a/src/api/bcd.js +++ b/src/api/bcd.js @@ -518,6 +518,16 @@ export class BetterCallApi { }) } + getOperationDiff(network, id) { + return getCancellable(this.api, `/operation/${network}/${id}/diff`, {}) + .then((res) => { + if (res.status != 200) { + throw new RequestFailedError(res); + } + return res.data + }) + } + getStats() { return getCancellable(this.api, `/stats`, {}) .then((res) => { diff --git a/src/components/InternalOperation.vue b/src/components/InternalOperation.vue index 2392ab6c..0e0051db 100644 --- a/src/components/InternalOperation.vue +++ b/src/components/InternalOperation.vue @@ -67,21 +67,16 @@ mdi-file-tree - Hide details - - - mdi-file-tree - Show details + {{ showParams ? 'Hide' : 'Show' }} details @@ -141,7 +136,7 @@ @@ -161,7 +156,10 @@ -