Skip to content
Snippets Groups Projects
Commit c673b9b0 authored by Ina Martini's avatar Ina Martini
Browse files

fix: remove notification

parent d0487325
No related branches found
No related tags found
3 merge requests!66Final merge,!49Create spare component,!4Pipeline fix
...@@ -51,14 +51,12 @@ interface Props { ...@@ -51,14 +51,12 @@ interface Props {
direction: 'left' | 'right' direction: 'left' | 'right'
pngSize: number pngSize: number
isModalOpen: boolean isModalOpen: boolean
notification: boolean
} }
const props = defineProps<Props>() const props = defineProps<Props>()
const speech = ref<string[]>(props.speech || []) const speech = ref<string[]>(props.speech || [])
const isModalOpen = ref(props.isModalOpen) const isModalOpen = ref(props.isModalOpen)
const notification = ref(props.notification)
// Watch the speech prop for changes // Watch the speech prop for changes
watch( watch(
...@@ -69,7 +67,6 @@ watch( ...@@ -69,7 +67,6 @@ watch(
speech.value = newVal // Update the reactive speech array speech.value = newVal // Update the reactive speech array
currentSpeechIndex.value = 0 // Reset the speech index currentSpeechIndex.value = 0 // Reset the speech index
isModalOpen.value = true // Open the modal if new speech is available isModalOpen.value = true // Open the modal if new speech is available
notification.value = true // Show the notification if a speech is available
} else { } else {
speech.value = [] // Clear the speech array if null is received speech.value = [] // Clear the speech array if null is received
modalClosed() // Close the modal if no speech is available modalClosed() // Close the modal if no speech is available
...@@ -92,7 +89,6 @@ const nextSpeech = () => { ...@@ -92,7 +89,6 @@ const nextSpeech = () => {
} else { } else {
// Close the modal if there are no speeches left // Close the modal if there are no speeches left
modalClosed() modalClosed()
notification.value = false // Remove the notification if no speech is available
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment