Skip to content

Commit

Permalink
Contract model changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevPM committed Oct 2, 2023
1 parent 148b387 commit 8aec956
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/views/contract/Contract.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
8 changes: 4 additions & 4 deletions src/views/contract/MenuToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
background-color="transparent"
slider-color="primary"
>
<v-tab :to="pushTo({ name: 'operations' })" :key="0" :title="contract.tx_count" replace style="width: 175px">
<v-tab :to="pushTo({ name: 'operations' })" :key="0" :title="contract.operations_count" replace style="width: 175px">
<v-icon left small>mdi-swap-horizontal</v-icon>operations
<span class="ml-1">({{ contract.tx_count || 0 | numberToCompactSIFormat }})</span>
<span class="ml-1">({{ contract.operations_count || 0 | numberToCompactSIFormat }})</span>
</v-tab>
<v-tab v-for="(tab, idx) in tabs" :key="idx + 1" :to="tab.to">
<v-icon left small>{{ tab.icon }}</v-icon>{{ tab.text }}
Expand Down Expand Up @@ -41,7 +41,7 @@ export default {
}
},
watch: {
'contract.tx_count'() {
'contract.operations_count'() {
this.componentKey += 1;
}
},
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/views/extended_search/cards/Account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<span class="overline">Operations count</span>
</v-list-item-title>
<v-list-item-subtitle>
<span class="hash">{{ info.tx_count }}</span>
<span class="hash">{{ info.operations_count }}</span>
</v-list-item-subtitle>
</v-list-item-content>
</v-list-item>
Expand Down

0 comments on commit 8aec956

Please sign in to comment.