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

Commit

Permalink
rfmt(consultation): display header conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 12, 2022
1 parent 05fb2ed commit a5d6104
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/consultation/chat_window/consultation_header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
class="action-taken"
@close="hideActionTakenOverlay">
<template #header>
Mark this consultation as finished?
{{ actionTakenHeader }}
</template>

<template #default>
Expand Down Expand Up @@ -115,7 +115,11 @@ const {
}
}
} = inject("pageContext") as PageContext<"deserialized">
const isCurrentUserConsultant = computed(() => kind === "reachable_employee")
const actionTakenHeader = isCurrentUserConsultant.value
? "Mark this consultation as finished?"
: "Cancel this consultation?"
interface CustomEvents {
(eventName: "update:modelValue", newValue: string): void
Expand Down

0 comments on commit a5d6104

Please sign in to comment.