File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/playground/src/components Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 22
22
<input-tooltip
23
23
v-if =" selectedName == 'stellar'"
24
24
tooltip =" Threefold Staller account"
25
- :href =" `https://stellar.expert/explorer/testnet/account/${depositWallet}` "
25
+ :href =" stellarLink "
26
26
target =" _blank"
27
27
>
28
28
<CopyReadonlyInput label =" Destination" :data =" depositWallet" ></CopyReadonlyInput >
81
81
82
82
<script setup lang="ts">
83
83
import { Decimal } from " decimal.js" ;
84
- import { onBeforeUnmount , onMounted , ref } from " vue" ;
84
+ import { computed , onBeforeUnmount , onMounted , ref } from " vue" ;
85
85
86
86
import { useProfileManagerController } from " ../components/profile_manager_controller.vue" ;
87
87
import QrcodeGenerator from " ../components/qrcode_generator.vue" ;
@@ -127,6 +127,13 @@ function loadingDots() {
127
127
}
128
128
}
129
129
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
+
130
137
onMounted (async () => {
131
138
if (! props .openDepositDialog ) return ;
132
139
if (interval .value !== null ) {
You can’t perform that action at this time.
0 commit comments