0
0
Fork 0

fix: hotfix-accountWeb

This commit is contained in:
Carlos Satorres 2024-11-29 12:20:53 +01:00
parent 67d6d4ef45
commit 514d54b222
1 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ async function hasCustomerRole() {
<FormModel
:url-update="`Clients/${route.params.id}/updateUser`"
:filter="filter"
url="VnUsers/preview"
model="customer"
:mapper="
({ active, name, email }) => {
return {
@ -41,14 +41,14 @@ async function hasCustomerRole() {
auto-load
>
<template #form="{ data, validate }">
<QCheckbox :label="t('Enable web access')" v-model="data.active" />
<VnInput :label="t('User')" clearable v-model="data.name" />
<QCheckbox :label="t('Enable web access')" v-model="data.account.active" />
<VnInput :label="t('User')" clearable v-model="data.account.name" />
<VnInput
:label="t('Recovery email')"
:rules="validate('client.email')"
clearable
type="email"
v-model="data.email"
data.account.name
class="q-mt-sm"
:info="t('This email is used for user to regain access their account')"
/>