File tree Expand file tree Collapse file tree 6 files changed +23
-3
lines changed Expand file tree Collapse file tree 6 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 5050 : false }"
5151 value-mask />
5252 </div >
53- <div v-if =" hasBitcoinAddresses && $config.enableBitcoin" class =" exchange" ref =" $exchange" >
53+
54+ <div v-if =" hasBitcoinAddresses && $config.enableBitcoin && $config.fastspot.enabled"
55+ class =" exchange" ref =" $exchange"
56+ >
5457 <Tooltip class =" btc" preferredPosition =" top right" :disabled =" hasActiveSwap" ref =" swapTooltip" noFocus >
5558 <button
5659 :disabled =" !totalFiatAccountBalance || hasActiveSwap || !canUseSwaps"
6770 </i18n >
6871 </Tooltip >
6972 </div >
73+ <div v-else-if =" hasBitcoinAddresses && $config.enableBitcoin" class =" separator" ></div >
74+
7075 <div v-if =" hasBitcoinAddresses && $config.enableBitcoin"
7176 class =" currency flex-column btc"
7277 :style =" {width: Math.max(0.12, balanceDistribution.btc) * 100 + '%'}"
@@ -292,6 +297,15 @@ export default defineComponent({
292297 }
293298 }
294299
300+ .separator {
301+ width : 0.25rem ;
302+ background : var (--nimiq-highlight-bg );
303+ margin : 0.5rem 0.75rem 0 1rem ;
304+ height : 4rem ;
305+ border-radius : 1rem ;
306+ flex-shrink : 0 ;
307+ }
308+
295309 .currency {
296310 justify-content : space-around ;
297311 align-content : center ;
Original file line number Diff line number Diff line change 2525 </div >
2626
2727 <div class =" trade-actions" v-show =" !isLegacyAccount" >
28- <button class =" nq-button-pill light-blue inverse"
28+ <button v-if =" $config.fastspot.enabled || $config.moonpay.enabled || $config.simplex.enabled"
29+ class =" nq-button-pill light-blue inverse"
2930 @click =" $router.push('/buy?sidebar=true')" @mousedown.prevent
3031 :disabled =" $route.name !== 'root' || hasActiveSwap"
3132 >{{ $t('Buy') }}</button >
3233
33- <button class =" nq-button-s inverse"
34+ <button v-if =" $config.fastspot.enabled"
35+ class =" nq-button-s inverse"
3436 @click =" $router.push('/sell-crypto?sidebar=true')" @mousedown.prevent
3537 :disabled =" $route.name !== 'root' || hasActiveSwap || !canUseSwaps"
3638 >{{ $t('Sell') }}</button >
Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ export default defineComponent({
232232
233233 const isOasisUnderMaintenance = ref (false );
234234 const isOasisAvailable = computed (() => {
235+ if (! Config .fastspot .enabled ) return false ;
235236 if (! canUseSwaps .value ) return false ;
236237 if (isOasisUnderMaintenance .value ) return false ;
237238 if (! country .value ) return true ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export default {
99 pageVisibilityTxRefreshInterval : 1 * 60e3 , // 1 minute
1010
1111 fastspot : {
12+ enabled : true ,
1213 apiEndpoint : 'https://api.test.fastspot.io/fast/v1' ,
1314 // This is a publishable key
1415 apiKey : 'd011aeea-41cf-4c05-a31d-436495bed9b7' ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export default {
99 pageVisibilityTxRefreshInterval : 5 * 60e3 , // 5 minutes
1010
1111 fastspot : {
12+ enabled : true ,
1213 apiEndpoint : 'https://api.go.fastspot.io/fast/v1' ,
1314 // This is a publishable key
1415 apiKey : 'c20d43d0-8f60-4fca-a298-85e80f64d042' ,
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export default {
99 pageVisibilityTxRefreshInterval : 2 * 60e3 , // 2 minutes
1010
1111 fastspot : {
12+ enabled : true ,
1213 apiEndpoint : 'https://api.test.fastspot.io/fast/v1' ,
1314 // This is a publishable key
1415 apiKey : 'd011aeea-41cf-4c05-a31d-436495bed9b7' ,
You can’t perform that action at this time.
0 commit comments