Skip to content

Commit

Permalink
Add alias additional info
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevPM committed Oct 15, 2023
1 parent 4888b0d commit 045756a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/views/opg/CallStackItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<div>
<span class="text--secondary" v-if="alias">{{ alias }}</span>
<Shortcut v-else class="text--secondary" :str="operation.destination"/>
<span class="hash accent--text" v-if="additionalAliasInfo">{{ additionalAliasInfo }}</span>
<span v-if="operation.destination" class="text--secondary" style="font-size: 20px"> → </span>
<span :class="itemClass">{{ itemValue }}</span>
</div>
Expand Down Expand Up @@ -33,6 +34,15 @@ export default {
this.setClassAndValue();
this.alias = await this.fetchAlias();
},
computed: {
additionalAliasInfo() {
if (this.operation.kind === 'origination') {
return ' was originated';
} else {
return null;
}
},
},
methods: {
async fetchAlias() {
return await this.getAlias(this.network, this.operation.destination)
Expand Down

0 comments on commit 045756a

Please sign in to comment.