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

Commit

Permalink
rfmt(consultation): generalize control button
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 12, 2022
1 parent 2adcf9d commit 05fb2ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/consultation/chat_window/extra_controls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
View consultation form
</a>
<a
v-if="isCurrentUserConsultant"
href="#"
class="additional-control show-action-taken-overlay-btn"
@click="showActionTakenOverlay">Finish consultation</a>
@click="showActionTakenOverlay">
{{ finishOrCancel }} consultation
</a>
</div>
</template>
</Dropdown>
Expand Down Expand Up @@ -76,6 +77,8 @@ function showActionTakenOverlay() {
emit("showActionTakenOverlay")
}
const { isCurrentUserConsultant } = props
const finishOrCancel = isCurrentUserConsultant ? "Finish" : "Cancel"
const linkToPrintableForm = specializePath(CONSULTATION_FORM_PRINT, {
"id": props.consultationId
})
Expand Down

0 comments on commit 05fb2ed

Please sign in to comment.