add more type casts

This commit is contained in:
2024-07-23 20:57:10 -06:00
parent d724d8093c
commit 59820a2f01
21 changed files with 100 additions and 64 deletions

View File

@@ -88,6 +88,7 @@
<script lang="ts">
import { Component, Vue } from "vue-facing-decorator";
import { Router } from "vue-router";
import { AppString, PASSKEYS_ENABLED } from "@/constants/app";
import { accountsDB, db } from "@/db/index";
@@ -113,22 +114,22 @@ export default class StartView extends Vue {
}
public onClickNewSeed() {
this.$router.push({ name: "new-identifier" });
(this.$router as Router).push({ name: "new-identifier" });
}
public async onClickNewPasskey() {
const keyName =
AppString.APP_NAME + (this.givenName ? " - " + this.givenName : "");
await registerSaveAndActivatePasskey(keyName);
this.$router.push({ name: "account" });
(this.$router as Router).push({ name: "account" });
}
public onClickNo() {
this.$router.push({ name: "import-account" });
(this.$router as Router).push({ name: "import-account" });
}
public onClickDerive() {
this.$router.push({ name: "import-derive" });
(this.$router as Router).push({ name: "import-derive" });
}
}
</script>