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

Commit

Permalink
fix(user): show schedules if reachable employee
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Dec 11, 2022
1 parent e4e5cd3 commit c55cdb4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/user/read.page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</form>

<div
v-if="hasEmployeeSchedules"
v-if="isReachableEmployee"
class="user-data-form">
<h1 class="user-data-form-header">
Consultation Schedules
Expand Down Expand Up @@ -257,7 +257,9 @@ const managementInfo = computed<UserManagementInfo>(
() => makeManagementInfo(userProfile, user.value.data)
)
const hasEmployeeSchedules = computed<boolean>(() => Boolean(userProfile.data.employeeSchedules))
const isReachableEmployee = computed<boolean>(
() => userProfile.data.kind === "reachable_employee"
)
const isDeleted = computed<boolean>(() => managementInfo.value.isDeleted)
const mayUpdateUser = computed<boolean>(() => managementInfo.value.mayUpdateUser)
Expand Down

0 comments on commit c55cdb4

Please sign in to comment.