From 8aec95689a358a7125c2b8565bfae62e7a7d5f35 Mon Sep 17 00:00:00 2001 From: GussevPM Date: Mon, 2 Oct 2023 21:23:44 +0400 Subject: [PATCH] Contract model changes --- src/views/contract/Contract.vue | 2 +- src/views/contract/MenuToolbar.vue | 8 ++++---- src/views/extended_search/cards/Account.vue | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/contract/Contract.vue b/src/views/contract/Contract.vue index 243d5aec..cc8247ea 100644 --- a/src/views/contract/Contract.vue +++ b/src/views/contract/Contract.vue @@ -236,7 +236,7 @@ export default { .getContract(this.network, this.address) .then((res) => { if (!res) return; - this.contract = res; + this.contract = {...this.contractInfo, ...res}; }) .catch((err) => { if (err.code === 204) { diff --git a/src/views/contract/MenuToolbar.vue b/src/views/contract/MenuToolbar.vue index 920b84f5..1baa79aa 100644 --- a/src/views/contract/MenuToolbar.vue +++ b/src/views/contract/MenuToolbar.vue @@ -6,9 +6,9 @@ background-color="transparent" slider-color="primary" > - + mdi-swap-horizontaloperations - ({{ contract.tx_count || 0 | numberToCompactSIFormat }}) + ({{ contract.operations_count || 0 | numberToCompactSIFormat }}) {{ tab.icon }}{{ tab.text }} @@ -41,7 +41,7 @@ export default { } }, watch: { - 'contract.tx_count'() { + 'contract.operations_count'() { this.componentKey += 1; } }, @@ -83,7 +83,7 @@ export default { }) } - if (this.contract.has_ticket_updates) { + if (this.contract.ticket_updates_count && this.contract.ticket_updates_count > 0) { tabs.push({ to: this.pushTo({ name: 'ticket_updates' }), icon: 'mdi-ticket-outline', diff --git a/src/views/extended_search/cards/Account.vue b/src/views/extended_search/cards/Account.vue index 3172a375..51754469 100644 --- a/src/views/extended_search/cards/Account.vue +++ b/src/views/extended_search/cards/Account.vue @@ -47,7 +47,7 @@ Operations count - {{ info.tx_count }} + {{ info.operations_count }}