diff --git a/src/components/MobileActionBar.vue b/src/components/MobileActionBar.vue index a3d521cfd..c3d686e3d 100644 --- a/src/components/MobileActionBar.vue +++ b/src/components/MobileActionBar.vue @@ -5,7 +5,7 @@ {{ $t('Send') }} diff --git a/src/components/layouts/AccountOverview.vue b/src/components/layouts/AccountOverview.vue index c46968ff0..439990f96 100644 --- a/src/components/layouts/AccountOverview.vue +++ b/src/components/layouts/AccountOverview.vue @@ -62,7 +62,8 @@ 0 || btcAccountBalance > 0)" class="nim-btc-swap-button" @@ -84,7 +85,8 @@ {{ $t('Buy') }} @@ -74,7 +74,7 @@ > {{ $t('Sell') }} @@ -130,7 +130,8 @@ > {{ $t('Send {currency}', { currency: 'NIM' }) }} diff --git a/src/components/staking/StakingButton.vue b/src/components/staking/StakingButton.vue index 9093271b9..e582a195d 100644 --- a/src/components/staking/StakingButton.vue +++ b/src/components/staking/StakingButton.vue @@ -4,7 +4,7 @@ v-if="!totalActiveStake && activeAddressInfo && activeAddressInfo.balance" preferredPosition="bottom" :container="$parent.$el ? { $el: $parent.$el } : undefined" - :disabled="isCTATooltipDisabled" + :disabled="$config.disableNetworkInteraction || isCTATooltipDisabled" > {{ $t('Earn NIM every month by staking your NIM') }} @@ -14,11 +14,11 @@ diff --git a/src/components/swap/SwapModal.vue b/src/components/swap/SwapModal.vue index 1167eeb30..70982759a 100644 --- a/src/components/swap/SwapModal.vue +++ b/src/components/swap/SwapModal.vue @@ -186,7 +186,7 @@ v-if="!isLimitReached || !$config.ten31Pass.enabled || kycUser" :assets="[assetToCurrency(leftAsset), assetToCurrency(rightAsset)]" :buttonColor="kycUser ? 'purple' : 'light-blue'" - :disabled="!canSign || currentlySigning" + :disabled="$config.disableNetworkInteraction || !canSign || currentlySigning" :error="disabledAssetError || estimateError || swapError || polygonFeeError" requireCompleteBtcHistory @click="sign" diff --git a/src/config/config.local.ts b/src/config/config.local.ts index 2d63a1714..01392c4d3 100644 --- a/src/config/config.local.ts +++ b/src/config/config.local.ts @@ -13,6 +13,7 @@ export default { '/dns4/seed3.pos.nimiq-testnet.com/tcp/8443/wss', '/dns4/seed4.pos.nimiq-testnet.com/tcp/8443/wss', ], + disableNetworkInteraction: true, faucetEndpoint: 'https://faucet.pos.nimiq-testnet.com', reportToSentry: false, enableBitcoin: true, diff --git a/src/config/config.mainnet.ts b/src/config/config.mainnet.ts index 0a2a85abf..f5ebd4876 100644 --- a/src/config/config.mainnet.ts +++ b/src/config/config.mainnet.ts @@ -23,6 +23,7 @@ export default { '/dns4/vortex.seed.nimiq.cloud/tcp/443/wss', '/dns4/zenith.seed.nimiq.systems/tcp/443/wss', ], + disableNetworkInteraction: true, faucetEndpoint: '', reportToSentry: true, enableBitcoin: true, diff --git a/src/config/config.testnet.ts b/src/config/config.testnet.ts index 1c601394f..d15237b81 100644 --- a/src/config/config.testnet.ts +++ b/src/config/config.testnet.ts @@ -13,6 +13,7 @@ export default { '/dns4/seed3.pos.nimiq-testnet.com/tcp/8443/wss', '/dns4/seed4.pos.nimiq-testnet.com/tcp/8443/wss', ], + disableNetworkInteraction: true, faucetEndpoint: 'https://faucet.pos.nimiq-testnet.com', reportToSentry: true, enableBitcoin: true,