Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
idatt2106_2024_02_frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IDATT2106 - Gruppe 2
idatt2106_2024_02_frontend
Commits
c673b9b0
Commit
c673b9b0
authored
11 months ago
by
Ina Martini
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove notification
parent
d0487325
No related branches found
Branches containing commit
No related tags found
3 merge requests
!66
Final merge
,
!49
Create spare component
,
!4
Pipeline fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/InteractiveSpare.vue
+0
-4
0 additions, 4 deletions
src/components/InteractiveSpare.vue
with
0 additions
and
4 deletions
src/components/InteractiveSpare.vue
+
0
−
4
View file @
c673b9b0
...
@@ -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
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment