b32527e057
This reverts commit 7f8f7c2aa15c8b8c6a7449d177f46f8a417e2f67.
37 lines
771 B
Vue
37 lines
771 B
Vue
<template>
|
|
<div class="field">
|
|
<div class="label">
|
|
{{ $t('relayerTotal.label') }}
|
|
</div>
|
|
<div class="withdraw-data">
|
|
<div class="withdraw-data-item">
|
|
{{ $t('relayerTotal.name') }}
|
|
<span>{{ relayerName }}</span>
|
|
</div>
|
|
<div class="withdraw-data-item">
|
|
{{ $t('relayerTotal.fee') }}
|
|
<span>{{ selectedRelayer.tornadoServiceFee }}%</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapState } from 'vuex'
|
|
|
|
export default {
|
|
computed: {
|
|
...mapState('relayer', ['selectedRelayer']),
|
|
relayerName() {
|
|
const { name, url } = this.selectedRelayer
|
|
|
|
if (name === 'custom') {
|
|
return url.replace(/http(s)?|:|\//g, '')
|
|
}
|
|
|
|
return name
|
|
}
|
|
}
|
|
}
|
|
</script>
|