Skip to content

Commit

Permalink
When starting speaking, close modal
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Aug 11, 2023
1 parent c50dc05 commit 9aff2f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/bibleview-js/src/components/AmbiguousActionButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand All @@ -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)!;
Expand Down Expand Up @@ -119,6 +119,7 @@ function speak() {
} else if(ordinalInfo.value) {
android.speakGeneric(ordinalInfo.value.bookInitials, ordinalInfo.value.osisRef, startOrdinal.value, endOrdinal.value);
}
closeModals()
}
</script>

Expand Down

0 comments on commit 9aff2f2

Please sign in to comment.