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

Commit

Permalink
feat(consultation): toggle rescheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
lemredd committed Nov 14, 2022
1 parent f5aff16 commit d7bc2dd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion components/consultation/chat_window/consultation_header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
:is-current-user-consultant="isCurrentUserConsultant"
:is-consultation-finished-or-cancelled="isConsultationFinishedOrCancelled"
@show-action-taken-overlay="showActionTakenOverlay"
@toggle-header-control-dropdown-shown="toggleHeaderControlDropdownShown"/>
@toggle-header-control-dropdown-shown="toggleHeaderControlDropdownShown"
@show-rescheduler-overlay="showReschedulerOverlay"/>

<Overlay
:is-shown="isActionTakenOverlayShown"
Expand Down Expand Up @@ -66,6 +67,10 @@
</button>
</template>
</Overlay>

<Rescheduler
:is-shown="isReschedulerShown"
@hide="hideReschedulerOverlay"/>
</div>
</div>
</template>
Expand Down Expand Up @@ -102,6 +107,7 @@ import ChatMessageFetcher from "$@/fetchers/chat_message"
import makeConsultationStates from "@/consultation/helpers/make_consultation_states"
import Overlay from "@/helpers/overlay.vue"
import Rescheduler from "./rescheduler.vue"
import NonSensitiveTextField from "@/fields/non-sensitive_text.vue"
import FileOverlay from "@/consultation/chat_window/file_overlay.vue"
import ExtraControls from "@/consultation/chat_window/extra_controls.vue"
Expand Down Expand Up @@ -272,6 +278,12 @@ function finishOrCancelConsultation() {
const isAllowedToCall = computed(() => isOngoing.value)
const {
"on": showReschedulerOverlay,
"off": hideReschedulerOverlay,
"state": isReschedulerShown
} = makeSwitch(false)
onMounted(async() => {
await loadRemainingFiles(independentFileChatMessages, chatMessageFetcher)
})
Expand Down

0 comments on commit d7bc2dd

Please sign in to comment.