mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-19 05:09:40 +02:00
fix: eslint errors and failing tests (#2078)
* fix eslint errors * fix failing tests
This commit is contained in:
parent
7c766af848
commit
5dc253799d
9 changed files with 35 additions and 29 deletions
|
@ -13,7 +13,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, toRef } from "@nuxtjs/composition-api";
|
||||
import { defineComponent, toRef, useContext } from "@nuxtjs/composition-api";
|
||||
import { usePasswordStrength } from "~/composables/use-passwords";
|
||||
|
||||
export default defineComponent({
|
||||
|
@ -25,8 +25,9 @@ export default defineComponent({
|
|||
},
|
||||
setup(props) {
|
||||
const asRef = toRef(props, "value");
|
||||
const { i18n } = useContext();
|
||||
|
||||
const pwStrength = usePasswordStrength(asRef);
|
||||
const pwStrength = usePasswordStrength(asRef, i18n);
|
||||
|
||||
return {
|
||||
pwStrength,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue