Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(user): allow email to be edited
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Nov 14, 2022
1 parent 57b24fb commit 465149b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pages/user/read.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@
<div class="user-name">
<NonSensitiveTextField
v-model="user.data.name"
v-model:status="nameFieldStatus"
v-model:status="textFieldStatus"
label="User Name"
type="text"/>
</div>
<div class="email">
<NonSensitiveTextField
v-model="user.data.email"
v-model:status="textFieldStatus"
label="Email"
type="text"/>
</div>
<button type="submit" class="update-user-btn btn btn-primary">
update user
</button>
Expand Down Expand Up @@ -239,7 +246,7 @@ const mayResetPassword = computed<boolean>(() => {
return isLimitedUpToDepartmentScope
})
const nameFieldStatus = ref<FieldStatus>(mayUpdateUser.value ? "locked" : "disabled")
const textFieldStatus = ref<FieldStatus>(mayUpdateUser.value ? "locked" : "disabled")
const mayNotSelect = computed<boolean>(() => !mayUpdateUser.value)
const fetcher = new Fetcher()
Expand Down

0 comments on commit 465149b

Please sign in to comment.