Change to anchors with click handlers so we can run code before transitioning to next pages

This commit is contained in:
Matthew Aaron Raymer
2022-12-05 16:52:28 +08:00
parent 290a13fbf2
commit 617de58a92
2 changed files with 16 additions and 8 deletions

View File

@@ -12,16 +12,16 @@
<p class="text-center text-xl mb-4 font-light">
Do you already have an identity to import?
</p>
<router-link
:to="{ name: 'account' }"
<a
@click="onClickYes()"
class="block w-full text-center text-lg font-bold uppercase bg-blue-600 text-white px-2 py-3 rounded-md mb-2"
>
No
</router-link>
<router-link
:to="{ name: 'import-account' }"
</a>
<a
@click="onClickNo()"
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md"
>Yes</router-link
>Yes</a
>
</div>
</section>
@@ -33,5 +33,13 @@ import { Options, Vue } from "vue-class-component";
@Options({
components: {},
})
export default class StartView extends Vue {}
export default class StartView extends Vue {
public onClickYes() {
this.$router.push({ name: "account" });
}
public onClickNo() {
this.$router.push({ name: "import-account" });
}
}
</script>