From 0a016b29ed61fb40ff5fb7effe7c7acd6fdc7b45 Mon Sep 17 00:00:00 2001 From: CodeNamedRobin Date: Wed, 28 Aug 2024 15:10:05 +0200 Subject: [PATCH] feat(dashboard/admin-single-user-view): added proper placeholders to forms --- apps/dashboard/src/locales/en.json | 3 ++- apps/dashboard/src/locales/nl.json | 3 ++- .../admin/components/users/AdminUserInfoCard.vue | 2 +- .../components/users/forms/UserEditForm.vue | 16 ++++++++-------- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/dashboard/src/locales/en.json b/apps/dashboard/src/locales/en.json index 4a6226fd..b8927389 100644 --- a/apps/dashboard/src/locales/en.json +++ b/apps/dashboard/src/locales/en.json @@ -323,7 +323,8 @@ "Usertype": "Usertype", "passwordUpdated": "Password successfully updated", "updatedUserInfo": "Succesfully updated user info.", - "userInfoUpdated": "User information successfully updated" + "userInfoUpdated": "User information successfully updated", + "userInformation": "User information" }, "contact": { "Contact": "Contact", diff --git a/apps/dashboard/src/locales/nl.json b/apps/dashboard/src/locales/nl.json index 1b1b3ad0..e125ef14 100644 --- a/apps/dashboard/src/locales/nl.json +++ b/apps/dashboard/src/locales/nl.json @@ -324,7 +324,8 @@ "Usertype": "Gebruikerstype", "passwordUpdated": "Wachtwoord is succesvol geüpdatet", "updatedUserInfo": "Profiel is succesvol geüpdatet.", - "userInfoUpdated": "Profiel is succesvol aangepast" + "userInfoUpdated": "Profiel is succesvol aangepast", + "userInformation": "Gebruikersinformatie" }, "validation": { "number": { diff --git a/apps/dashboard/src/modules/admin/components/users/AdminUserInfoCard.vue b/apps/dashboard/src/modules/admin/components/users/AdminUserInfoCard.vue index 187b65b7..d7f4bef6 100644 --- a/apps/dashboard/src/modules/admin/components/users/AdminUserInfoCard.vue +++ b/apps/dashboard/src/modules/admin/components/users/AdminUserInfoCard.vue @@ -1,5 +1,5 @@ @@ -68,7 +68,7 @@ import { useToast } from "primevue/usetoast"; import { type Form, setSubmit } from "@/utils/formUtils"; import apiService from "@/services/ApiService"; import type { UpdateUserRequest, UserResponse } from "@sudosos/sudosos-client"; -import {onBeforeMount, onMounted, type PropType, type Ref, ref} from "vue"; +import { type PropType } from "vue"; import * as yup from "yup"; import { updateUserDetailsObject } from "@/utils/validation-schema"; import { handleError } from "@/utils/errorUtils";