6363
6464 <div v-else-if =" !searchString" class =" empty-state flex-column" >
6565 <h2 class =" nq-h1" >{{ $t('Your transactions will appear here') }}</h2 >
66- <!-- <span>{{ $t('Receive some free NIM to get started.') }}</span>
6766
68- <a v-if="isMainnet"
69- :href="`https://getsome.nimiq.com/?address=${activeAddress}`" target="_blank" rel="noopener"
67+ <router-link v-if =" isMainnet" to =" buy" class =" nq-button light-blue" >
68+ {{ $t('Buy BTC') }}
69+ </router-link >
70+ <!-- <a v-else
71+ href="https://www.google.com/search?q=bitcoin+testnet+faucet" target="_blank" rel="noopener"
7072 class="nq-button green"
7173 @mousedown.prevent
72- >{{ $t('Receive free NIM') }}</a>
73- <a v-else
74- href="https://testnet-faucet.mempool.co/" target="_blank" rel="noopener"
75- class="nq-button green"
76- @mousedown.prevent
77- >{{ $t('Get free test BTC') }}</a> -->
74+ >{{ $t('Get free tBTC') }}</a> -->
7875 </div >
7976 <div v-else class =" empty-state flex-column" >
8077 <h2 class =" nq-h1 no-search-results" >{{ $t('No transactions found') }}</h2 >
8683import { defineComponent , computed , ref , Ref /* , onMounted, onBeforeUnmount, watch */ } from ' @vue/composition-api' ;
8784import { CircleSpinner , AlertTriangleIcon } from ' @nimiq/vue-components' ;
8885import BtcTransactionListItem from ' @/components/BtcTransactionListItem.vue' ;
89- // import { ENV_MAIN } from '../lib/Constants';
86+ import { ENV_MAIN } from ' ../lib/Constants' ;
9087import { useBtcAddressStore } from ' ../stores/BtcAddress' ;
9188import { useBtcTransactionsStore } from ' ../stores/BtcTransactions' ;
9289import { useBtcNetworkStore } from ' ../stores/BtcNetwork' ;
9390import { useAccountStore } from ' ../stores/Account' ;
9491import { useBtcLabelsStore } from ' ../stores/BtcLabels' ;
9592import { useWindowSize } from ' ../composables/useWindowSize' ;
96- // import { useConfig } from '../composables/useConfig';
93+ import { useConfig } from ' ../composables/useConfig' ;
9794
9895function processTimestamp(timestamp : number ) {
9996 const date: Date = new Date (timestamp );
@@ -347,7 +344,7 @@ export default defineComponent({
347344 // })();
348345
349346 // Does not need to be reactive, as the environment doesn't change during runtime.
350- // const isMainnet = useConfig().config.environment === ENV_MAIN;
347+ const isMainnet = useConfig ().config .environment === ENV_MAIN ;
351348
352349 // Scroll to top when
353350 // - Active address changes
@@ -365,7 +362,7 @@ export default defineComponent({
365362 transactions ,
366363 root ,
367364 isFetchingTxHistory ,
368- // isMainnet,
365+ isMainnet ,
369366 scroller ,
370367 consensus ,
371368 };
0 commit comments