From 5f864599f09e71ef244c3e96d036699c66df1f1e Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 1 Feb 2025 04:21:53 +0000 Subject: [PATCH] Reset the 'played' state --- .../RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue index d79964f75..b946da4a6 100644 --- a/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue +++ b/frontend/components/Domain/Recipe/RecipePage/RecipePageParts/RecipePageInstructionPlayer.vue @@ -43,12 +43,14 @@ export default defineComponent({ this.utterance = new SpeechSynthesisUtterance(this.step.text); this.utterance.onstart = (event) => { self.playing = true; + self.played = false; // self.$emit("playing", true); // TODO: Consider if this event should bubble or a proxy of it should. console.debug("Now playing: " + this.step.text); }; this.utterance.onend = () => { self.playing = false; + self.played = true; // self.$emit("playing", false); console.debug("Playback complete");