Revert "allow wallet withdrawal if no relayers"

This reverts commit d0cee4aa9a.
This commit is contained in:
Tornado Contrib 2024-05-06 01:03:15 +00:00
parent 780ccdc44c
commit 45c49b7f3f
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
2 changed files with 5 additions and 14 deletions

View File

@ -4,25 +4,20 @@
<div class="box-modal-title">{{ $t('withdrawalSettings') }}</div>
<button type="button" class="delete" @click="$parent.cancel('escape')" />
</header>
<b-tabs v-if="isRelayersAvailable" v-model="withdrawType" :animated="false" class="is-modal">
<b-tabs v-model="withdrawType" :animated="false" class="is-modal">
<RelayerTab />
</b-tabs>
<b-tabs v-else v-model="withdrawType" :animated="false" class="is-modal">
<RelayerTab />
<WalletTab />
</b-tabs>
</div>
</template>
<script>
/* eslint-disable no-console */
import { mapState, mapMutations } from 'vuex'
import { RelayerTab, WalletTab } from '@/components/settings/tabs'
import { RelayerTab } from '@/components/settings/tabs'
export default {
components: {
RelayerTab,
WalletTab
RelayerTab
},
props: {
currency: {
@ -49,11 +44,7 @@ export default {
computed: {
...mapState('application', {
defaultWithdrawType: 'withdrawType'
}),
...mapState('relayer', ['isLoadingRelayers', 'validRelayers']),
isRelayersAvailable() {
return !this.isLoadingRelayers && this.validRelayers.length > 0;
}
})
},
created() {
this.withdrawType = this.defaultWithdrawType

View File

@ -200,7 +200,7 @@ export default {
return false
},
shouldSettingsShow() {
return !this.isLoading && !this.error.type && !this.hasErrorNote
return !this.hasErrorNote && !this.error.message
},
hasErrorNote() {
const note = this.withdrawNote.split('-')[4]