Skip to content

Commit

Permalink
Add icon for transfers and smal fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevPM committed Aug 22, 2023
1 parent d2e107a commit 29efe79
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
18 changes: 17 additions & 1 deletion src/components/InternalOperation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,30 @@
</v-col>
</v-row>
<v-row no-gutters class="px-4 pt-4" style="font-size: 16px;">
<v-col cols="11">
<v-col cols="10">
<span v-if="data.tag" class="hash accent--text">event {{ data.tag }}</span>
<span v-else>
<span v-if="data.internal" class="mr-2 hash font-weight-thin">internal</span>
<span class="hash accent--text">{{ displayEntrypoint }}</span>
</span>
<v-chip class="ml-3 overline" :color="statusColor" small outlined label>{{ data.status }}</v-chip>
</v-col>
<v-col cols="1" class="text-right">
<v-btn
text
class="mr-7 text--secondary"
small
v-if="data.ticket_updates_count > 0"
>
<v-badge
color="primary"
:content="data.ticket_updates_count"
overlap
>
<v-icon>mdi-ticket-confirmation</v-icon>
</v-badge>
</v-btn>
</v-col>
<v-col
cols="1"
class="py-0 d-flex justify-end align-center"
Expand Down
2 changes: 1 addition & 1 deletion src/views/contract/ContentItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default {
computed: {
text() {
if (this.value == null) return "";
if (this.value.entrypoint) {
if (this.value.entrypoint && this.data.kind !== 'transfer_ticket') {
let all = this.value.entrypoint.split(',');
if (all.length == 1) {
return all[0];
Expand Down
2 changes: 1 addition & 1 deletion src/views/contract/TypeDef.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="d-flex flex-column parameters">
<div v-for="(def, i) in typedef" :key="i" class="mb-0">
<div v-for="(def, i) in typedef" :key="i" class="mb-2">
<span v-if="i === 0" class="font-weight-light">{{ first ? first + '&nbsp;' : '' }}</span>
<span v-else-if="def.name" class="font-weight-light">{{ def.name }}&nbsp;</span>
<span class="tree--text" v-html="highlightType(def.type)"></span>
Expand Down

0 comments on commit 29efe79

Please sign in to comment.