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

Commit

Permalink
feat(consultation): allow cancelling
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 13, 2022
1 parent 7261002 commit b598257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/consultation/chat_window.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
:is-action-taken-overlay-shown="isActionTakenOverlayShown"
@show-action-taken-overlay="showActionTakenOverlay"
@hide-action-taken-overlay="hideActionTakenOverlay"
@cancel-consultation="cancelConsultation"
@finish-consultation="finishConsultation"/>
<div class="selected-consultation-chats">
<div class="selected-consultation-new">
Expand Down Expand Up @@ -260,6 +261,10 @@ function finishConsultation(): void {
.catch(response => extractAllErrorDetails(response, receivedErrors))
}
}
function cancelConsultation(): void {
fetcher.archive([ consultationID.value ])
.catch(response => extractAllErrorDetails(response, receivedErrors))
}
function registerListeners(resource: DeserializedConsultationResource): void {
ConsultationTimerManager.listenConsultationTimeEvent(resource, "consumedTime", changeTime)
Expand Down

0 comments on commit b598257

Please sign in to comment.