Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Jul 31, 2023
1 parent dd3fe53 commit 478083b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 8 additions & 1 deletion frontend/src/app/router.options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import { RouterConfig } from "@nuxt/schema";
// import { RouterOptions } from "@nuxt/schema";
import { RouterHistory, RouterOptions } from "vue-router";

type RouterConfig = Partial<Omit<RouterOptions, "history" | "routes">> & {
history?: (baseURL?: string) => RouterHistory;
routes?: (_routes: RouterOptions$1["routes"]) => RouterOptions$1["routes"];
hashMode?: boolean;
};

export default {
scrollBehavior(to, from, savedPosition) {
Expand Down
1 change: 0 additions & 1 deletion frontend/src/composables/useApiHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
} from "hangar-internal";
import { AsyncData } from "nuxt/app";
import { ComputedRef, Ref } from "vue";
import { NuxtApp } from "@nuxt/schema";
import { useApi, useInternalApi } from "~/composables/useApi";
import { createError, hasPerms, ref, useAsyncData } from "#imports";
import { handleRequestError } from "~/composables/useErrorHandling";
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/auth/settings/security.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ async function generateNewCodes() {
</div>
Confirm that you saved the backup codes by entering one of them below
<InputText v-model="backupCodeConfirm" label="Backup Code" :rules="[requiredIf()(backupCodeModal.isOpen)]" />
<Button class="mt-2" @click="confirmAndRepeat" :disabled="v.$invalid">Confirm</Button>
<Button class="mt-2" :disabled="v.$invalid" @click="confirmAndRepeat">Confirm</Button>
</Modal>
<h3 class="text-lg font-bold mt-4 mb-2">Devices</h3>
Expand Down

0 comments on commit 478083b

Please sign in to comment.