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 dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 12, 2022
1 parent a5d6104 commit 2c64083
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/consultation/chat_window/consultation_header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</template>

<template #default>
<p>If so, please provide the action taken to solve the consulter/s concern.</p>
<p>If so, please provide the {{ actionTakenDescription }}</p>
<NonSensitiveTextField
v-model="actionTaken"
class="action-taken-field"
Expand Down Expand Up @@ -120,6 +120,9 @@ const isCurrentUserConsultant = computed(() => kind === "reachable_employee")
const actionTakenHeader = isCurrentUserConsultant.value
? "Mark this consultation as finished?"
: "Cancel this consultation?"
const actionTakenDescription = isCurrentUserConsultant.value
? "action taken to solve the consulter(s) concern."
: "reason for cancellation."
interface CustomEvents {
(eventName: "update:modelValue", newValue: string): void
Expand Down

0 comments on commit 2c64083

Please sign in to comment.