Skip to content

Commit

Permalink
Fix Nan + add transfers + paint operations + order
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevPM committed Aug 31, 2023
1 parent 3b30a1c commit eec1065
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
13 changes: 11 additions & 2 deletions src/views/opg/CallStack.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ export default {
},
components: {
CallStackItem
}
},
created() {
this.operations.sort((a, b) => {
// if (a.counter !== b.counter) {
// return a.counter - b.counter;
// }
return a.id - b.id;
});
},
}
</script>
</script>
14 changes: 8 additions & 6 deletions src/views/opg/CallStackItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
<div class="d-flex align-center" :class="operation.internal ? 'mt-2' : 'mt-4'">
<span v-if="operation.internal" class="mr-2" style="font-size: 14px">↳</span>
<div>
<span class="text--secondary" v-if="alias">{{ alias }}</span>
<Shortcut v-else class="text--secondary" :str="operation.destination"/>
<span class="text--secondary" style="font-size: 20px">→</span>
<span v-if="operation.entrypoint" class="hash">{{ operation.entrypoint }}()</span>
<span v-else>{{ operation.amount | uxtz }}</span>
<span class="text--secondary" v-if="alias">{{ alias }}</span>
<Shortcut v-else class="text--secondary" :str="operation.destination"/>
<span v-if="operation.destination" class="text--secondary" style="font-size: 20px"> → </span>
<span v-if="operation.tag" class="hash accent--text">event {{ operation.tag }}</span>
<span v-else-if="operation.kind === 'transfer_ticket'" class="hash accent--text">{{ operation.kind }}:{{ operation.entrypoint ? operation.entrypoint : '' }}()</span>
<span v-else-if="operation.entrypoint" class="hash secondary--text">{{ operation.entrypoint }}()</span>
<span v-else>{{ operation.amount ? operation.amount : 0 | uxtz }}</span>
</div>
</div>
</template>
Expand Down Expand Up @@ -37,4 +39,4 @@ export default {
}
}
}
</script>
</script>

0 comments on commit eec1065

Please sign in to comment.