Skip to content

Commit

Permalink
fix(onboarding): added download wallet link for mobile version
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenibir committed Sep 15, 2023
1 parent ae3b12e commit 5c67f12
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/login/register-user-with-captcha-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ export default {
},
goToDocumentation() {
window.location.href = this.HELP_LINK
},
downloadWallet() {
if (navigator.userAgent.toLowerCase().indexOf('iphone') > -1) {
window.location.href = 'http://itunes.apple.com/lb/app/id1659926348'
} else if (navigator.userAgent.toLowerCase().indexOf('android') > -1) {
window.location.href = 'http://play.google.com/store/apps/details?id=earth.hypha.wallet.hypha_wallet'
}
}
}
}
Expand Down Expand Up @@ -315,7 +322,8 @@ export default {
.ellipse-border(:class="(step === this.steps.inviteLink.name || step === this.steps.finish.name ) && 'ellipse-filled'")
.ellipse-border(:class="step === this.steps.finish.name && 'ellipse-filled'")
.col-10.no-wrap.flex.justify-end.items-center
q-btn(v-if="step === this.steps.inviteLink.name" :label="$t('login.register-user-with-captcha-view.copyInviteLink')" color="primary" outline unelevated @click="copyText()" rounded no-caps)
q-btn(v-if="step === this.steps.inviteLink.name && !$q.screen.gt.md" :label="$t('login.register-user-with-captcha-view.downloadWallet')" color="primary" outline unelevated @click="downloadWallet()" rounded no-caps)
q-btn(v-if="step === this.steps.inviteLink.name && $q.screen.gt.md" :label="$t('login.register-user-with-captcha-view.copyInviteLink')" color="primary" outline unelevated @click="copyText()" rounded no-caps)
q-btn(v-if="step !== this.steps.finish.name").q-mx-md.q-px-md(:style="{ 'height': 'fit-content' }" :label="step === 'finish' ? 'Need Help?' : 'Next'" color="primary" unelevated @click="next" :disable="!this.inviteLink" :loading="submitting" :outline="step === this.steps.finish.name" rounded no-caps)
q-list(v-if="step === steps.finish.name")
q-item.wallet.q-my-xs(v-for="(wallet, idx) in this.hyphaAuthenticators" :key="wallet.getStyle().text" v-ripple :style="{ background: wallet.getStyle().background, color: wallet.getStyle().textColor }")
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,8 @@
"createYourDao":"Create Your DAO",
"goAheadAndAddYour":"Go ahead and add your DAO's name and upload a logo. You can also also list your DAO's purpose and the impact it envisions making.",
"publishYourDao":"Publish your DAO",
"needHelp":"Need help?"
"needHelp":"Need help?",
"downloadWallet": "Download Wallet"
},
"welcome-view":{
"youNeedAn":"You need an Hypha Account to interact with Hypha Ecosystem and create a DAO.",
Expand Down

0 comments on commit 5c67f12

Please sign in to comment.