Skip to content

Commit

Permalink
fix PLA-1478
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Dec 5, 2023
1 parent 6fcf555 commit e45c74d
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,13 @@
<div class="space-y-2 pt-4 pb-3" v-if="transaction.transactionId">
<dt class="text-base font-medium text-gray-500">Transaction ID</dt>
<dd class="flex items-center mt-1 text-sm text-gray-900">
{{ transaction.transactionId }}
<CopyTextIcon :text="transaction.transactionId" />
<a
:href="getSubscanUrl(transaction.transactionId)"
target="_blank"
class="text-primary font-medium"
>
{{ transaction.transactionId }}
</a>
</dd>
</div>

Expand Down Expand Up @@ -188,6 +193,14 @@ const events = computed(() => transaction.value?.events);

const advancedEvents = computed(() => transaction.value?.advancedEvents);

const getSubscanUrl = (transactionId) => {
if (appStore.config.network === 'canary') {
return `https://canary-matrix.subscan.io/extrinsic/${transactionId}`;
}

return `https://matrix.subscan.io/extrinsic/${transactionId}`;
};

const isAddressKey = (key) => ['who', 'operator', 'account', 'owner'].includes(key);

const getTransaction = async () => {
Expand Down

0 comments on commit e45c74d

Please sign in to comment.