1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-02 12:05:21 +02:00

Fix/fix broken pwa (#1086)

* remove fetch / use axios fix #1077

* revert checkbox change

* add password peek

* fix bool check
This commit is contained in:
Hayden 2022-03-22 20:41:54 -08:00 committed by GitHub
parent e743d2c66b
commit ba325c12f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 17 deletions

View file

@ -25,7 +25,7 @@
<v-card-title class="headline justify-center pb-1"> Sign In </v-card-title>
<v-card-text>
<v-form @submit.prevent="authenticate()">
<v-form @submit.prevent="authenticate">
<v-text-field
v-model="form.email"
:prepend-inner-icon="$globals.icons.email"
@ -41,12 +41,14 @@
id="password"
v-model="form.password"
:prepend-inner-icon="$globals.icons.lock"
:append-icon="passwordIcon"
filled
rounded
class="rounded-lg"
name="password"
label="Password"
type="password"
:type="inputType"
@click:append="togglePasswordShow"
/>
<v-checkbox v-model="form.remember" class="ml-2 mt-n2" label="Remember Me"></v-checkbox>
<v-card-actions class="justify-center pt-0">
@ -110,6 +112,7 @@
import { defineComponent, ref, useContext, computed, reactive } from "@nuxtjs/composition-api";
import { useDark } from "@vueuse/core";
import { useAppInfo } from "~/composables/api";
import { usePasswordField } from "~/composables/use-password-field";
import { alert } from "~/composables/use-toast";
import { useToggleDarkMode } from "~/composables/use-utils";
export default defineComponent({
@ -131,6 +134,8 @@ export default defineComponent({
const appInfo = useAppInfo();
const { passwordIcon, inputType, togglePasswordShow } = usePasswordField();
const allowSignup = computed(() => appInfo.value?.allowSignup || false);
async function authenticate() {
@ -169,6 +174,9 @@ export default defineComponent({
allowSignup,
authenticate,
toggleDark,
passwordIcon,
inputType,
togglePasswordShow,
};
},