From e45c74d6a583cd78aedd23b8802113ac60613da4 Mon Sep 17 00:00:00 2001 From: zlayine Date: Tue, 5 Dec 2023 19:01:35 +0300 Subject: [PATCH] fix PLA-1478 --- .../common/DetailsTransactionSlideover.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue b/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue index 39a5768..df95dd8 100644 --- a/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue +++ b/resources/js/components/slideovers/common/DetailsTransactionSlideover.vue @@ -81,8 +81,13 @@
Transaction ID
- {{ transaction.transactionId }} - + + {{ transaction.transactionId }} +
@@ -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 () => {