Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Improve deep link button
Browse files Browse the repository at this point in the history
  • Loading branch information
dzbo committed Nov 7, 2024
1 parent 0457a7c commit 09cb0ec
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion components/WalletConnectButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ const deepLink = ref('')
const { initProvider, connect: connectWalletConnect } =
useWalletConnectProvider()
const { walletConnectProvider: provider } = storeToRefs(useAppStore())
const { closeModal } = useModal()
const handleClick = async () => {
await closeModal()
navigateTo(deepLink.value, { external: true })
}
onMounted(async () => {
await initProvider()
Expand All @@ -22,7 +28,19 @@ onMounted(async () => {
</script>

<template>
<lukso-button variant="secondary" is-full-width is-link :href="deepLink">
<lukso-button
variant="secondary"
is-full-width
target="_self"
:is-loading="!deepLink ? true : undefined"
:loading-text="
formatMessage(
'modal_connect_wallet_select_provider_connect_mobile_button'
)
"
:disabled="!deepLink ? true : undefined"
@click="handleClick"
>
<lukso-icon name="phone-portrait-outline" class="mr-2"></lukso-icon>
{{
formatMessage(
Expand Down

0 comments on commit 09cb0ec

Please sign in to comment.