Fix password input class in Profile

This commit is contained in:
Kloon ImKloon 2023-09-12 15:18:57 +02:00
parent 44a09ad7e7
commit 5d4a4fc485
No known key found for this signature in database
GPG Key ID: CCF1C86A995C5B6A

View File

@ -80,7 +80,7 @@ import { useAuthStore } from "@/stores/auth";
import { useLayoutStore } from "@/stores/layout";
import { users as api } from "@/api";
import Languages from "@/components/settings/Languages.vue";
import { inject, onMounted, ref } from "vue";
import { computed, inject, onMounted, ref } from "vue";
import { useI18n } from "vue-i18n";
import i18n, { rtlLanguages } from "@/i18n";
@ -98,7 +98,7 @@ const singleClick = ref<boolean>(false);
const dateFormat = ref<boolean>(false);
const locale = ref<string>("");
const passwordClass = () => {
const passwordClass = computed(() => {
const baseClass = "input input--block";
if (password.value === "" && passwordConf.value === "") {
@ -110,7 +110,7 @@ const passwordClass = () => {
}
return `${baseClass} input--red`;
};
});
onMounted(() => {
layoutStore.loading = true;