mirror of
https://github.com/tornadocash/tornado-classic-ui
synced 2024-02-02 15:04:09 +01:00
fix: add eth.link notification
This commit is contained in:
commit
498e1908e1
@ -456,5 +456,10 @@
|
||||
"trustBanner": {
|
||||
"trustLess": "You are using a public IPFS gateway. Tornado Cash dApp can not use all security features of your browser. Check out {link} for alternatives",
|
||||
"link": "landing page"
|
||||
},
|
||||
"ethLinkBanner": {
|
||||
"notification": "Due to the {issue} with eth.link domain, we highly recommend avoiding using this gateway. Consider {alternative} gateways.",
|
||||
"issue": "issue",
|
||||
"alternative": "alternative"
|
||||
}
|
||||
}
|
||||
|
@ -49,6 +49,32 @@
|
||||
</template>
|
||||
</i18n>
|
||||
</b-notification>
|
||||
|
||||
<b-notification
|
||||
v-if="isEthLink"
|
||||
:active="isActiveNotification.ethLink"
|
||||
class="main-notification"
|
||||
type="is-warning"
|
||||
icon-pack="icon"
|
||||
has-icon
|
||||
:aria-close-label="$t('closeNotification')"
|
||||
@close="disableNotification({ key: 'ethLink' })"
|
||||
>
|
||||
<i18n path="ethLinkBanner.notification">
|
||||
<template v-slot:issue>
|
||||
<a
|
||||
href="https://discuss.ens.domains/t/eth-link-expiry/13899"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>{{ $t('ethLinkBanner.issue') }}</a
|
||||
>
|
||||
</template>
|
||||
<template v-slot:alternative>
|
||||
<a href="https://tornado.cash/">{{ $t('ethLinkBanner.alternative') }}</a>
|
||||
</template>
|
||||
</i18n>
|
||||
</b-notification>
|
||||
|
||||
<div class="columns">
|
||||
<div class="column is-half">
|
||||
<b-tabs v-model="activeTab" class="is-tornado" :animated="false" @input="tabChanged">
|
||||
@ -81,7 +107,8 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
activeTab: 0,
|
||||
isActive: false
|
||||
isActive: false,
|
||||
isEthLink: window.location.host === 'tornadocash.eth.link'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
Loading…
Reference in New Issue
Block a user