From 9aff2f26d4d2a253adf25095ad7a58d4e8738733 Mon Sep 17 00:00:00 2001 From: Tuomas Airaksinen Date: Fri, 11 Aug 2023 19:30:41 +0300 Subject: [PATCH] When starting speaking, close modal --- app/bibleview-js/src/components/AmbiguousActionButtons.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/bibleview-js/src/components/AmbiguousActionButtons.vue b/app/bibleview-js/src/components/AmbiguousActionButtons.vue index 861a06921e..b706cfbbc3 100644 --- a/app/bibleview-js/src/components/AmbiguousActionButtons.vue +++ b/app/bibleview-js/src/components/AmbiguousActionButtons.vue @@ -54,7 +54,7 @@ import {computed, inject} from "vue"; import {FontAwesomeIcon, FontAwesomeLayers} from "@fortawesome/vue-fontawesome"; import {useCommon} from "@/composables"; -import {androidKey} from "@/types/constants"; +import {androidKey, modalKey} from "@/types/constants"; import {SelectionInfo} from "@/types/common"; const props = withDefaults(defineProps<{ @@ -67,7 +67,7 @@ const props = withDefaults(defineProps<{ }) const emit = defineEmits(["close"]); - +const {closeModals} = inject(modalKey)! const {strings} = useCommon() const selectionInfo = computed(() => props.selectionInfo); const android = inject(androidKey)!; @@ -119,6 +119,7 @@ function speak() { } else if(ordinalInfo.value) { android.speakGeneric(ordinalInfo.value.bookInitials, ordinalInfo.value.osisRef, startOrdinal.value, endOrdinal.value); } + closeModals() }