Skip to content

Commit c90d0e4

Browse files
Merge pull request #2340 from threefoldtech/development_fix_stellar_link
change stellar link for test and mainnet
2 parents 06b2876 + 2485a29 commit c90d0e4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/playground/src/components/deposit_dialog.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<input-tooltip
2323
v-if="selectedName == 'stellar'"
2424
tooltip="Threefold Staller account"
25-
:href="`https://stellar.expert/explorer/testnet/account/${depositWallet}`"
25+
:href="stellarLink"
2626
target="_blank"
2727
>
2828
<CopyReadonlyInput label="Destination" :data="depositWallet"></CopyReadonlyInput>
@@ -81,7 +81,7 @@
8181

8282
<script setup lang="ts">
8383
import { Decimal } from "decimal.js";
84-
import { onBeforeUnmount, onMounted, ref } from "vue";
84+
import { computed, onBeforeUnmount, onMounted, ref } from "vue";
8585
8686
import { useProfileManagerController } from "../components/profile_manager_controller.vue";
8787
import QrcodeGenerator from "../components/qrcode_generator.vue";
@@ -127,6 +127,13 @@ function loadingDots() {
127127
}
128128
}
129129
130+
const stellarLink = computed(() => {
131+
if (window.env.NETWORK !== "dev" && window.env.NETWORK !== "qa") {
132+
return `https://stellar.expert/explorer/public/account/${props.depositWallet}`;
133+
}
134+
return `https://stellar.expert/explorer/testnet/account/${props.depositWallet}`;
135+
});
136+
130137
onMounted(async () => {
131138
if (!props.openDepositDialog) return;
132139
if (interval.value !== null) {

0 commit comments

Comments
 (0)