hotfix: disable username and email fields in profile form
- Disabled the username and email fields in the profile update form. - Set the `is-read-only` property to `true` for the username and email `FormControl` components.
This commit is contained in:
parent
f89b119b18
commit
7bb4bd06cf
1 changed files with 2 additions and 2 deletions
|
@ -105,7 +105,7 @@ const updateProfileInformation = () => {
|
|||
|
||||
<FormField label="Username" :class="{ 'text-red-400': form.errors.login }">
|
||||
<FormControl id="username" label="Username" v-model="form.login" class="w-full"
|
||||
:is-read-only="!user.is_admin">
|
||||
:is-read-only="true">
|
||||
<div class="text-red-400 text-sm" v-if="errors.login && Array.isArray(errors.login)">
|
||||
{{ errors.login.join(', ') }}
|
||||
</div>
|
||||
|
@ -115,7 +115,7 @@ const updateProfileInformation = () => {
|
|||
|
||||
<FormField label="Enter Email">
|
||||
<FormControl v-model="form.email" type="text" placeholder="Email" :errors="form.errors.email"
|
||||
:is-read-only="!user.is_admin">
|
||||
:is-read-only="true">
|
||||
<div class="text-red-400 text-sm" v-if="errors.email && Array.isArray(errors.email)">
|
||||
{{ errors.email.join(', ') }}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue