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
9152bf88
Commit
9152bf88
authored
11 months ago
by
Ina Martini
Browse files
Options
Downloads
Patches
Plain Diff
chore: run format checks
parent
c7b33b56
No related branches found
Branches containing commit
No related tags found
3 merge requests
!66
Final merge
,
!42
Refactor interactiveSpare to modal
,
!4
Pipeline fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/HomeView.vue
+17
-17
17 additions, 17 deletions
src/views/HomeView.vue
with
17 additions
and
17 deletions
src/views/HomeView.vue
+
17
−
17
View file @
9152bf88
...
...
@@ -74,16 +74,16 @@ onMounted(async () => {
// Check if the user is logging in for the first time, and display the first login speech
const
firstLoggedInSpeech
=
()
=>
{
const
isFirstLogin
=
router
.
currentRoute
.
value
.
query
.
firstLogin
===
'
true
'
if
(
isFirstLogin
)
{
speech
.
value
=
[
'
Hei, jeg er Spare!
'
,
'
Jeg skal hjelpe deg med å spare penger.
'
,
'
Du får varsel når jeg har noe å si!
'
]
isModalOpen
.
value
=
true
router
.
replace
({
name
:
'
home
'
,
query
:
{
firstLogin
:
'
false
'
}
})
}
const
isFirstLogin
=
router
.
currentRoute
.
value
.
query
.
firstLogin
===
'
true
'
if
(
isFirstLogin
)
{
speech
.
value
=
[
'
Hei, jeg er Spare!
'
,
'
Jeg skal hjelpe deg med å spare penger.
'
,
'
Du får varsel når jeg har noe å si!
'
]
isModalOpen
.
value
=
true
router
.
replace
({
name
:
'
home
'
,
query
:
{
firstLogin
:
'
false
'
}
})
}
}
const
openInteractiveSpare
=
()
=>
{
...
...
@@ -94,13 +94,13 @@ const openInteractiveSpare = () => {
}
}
const
openHelp
=
()
=>
{
speech
.
value
=
[
'
Heisann, jeg er Spare!
'
,
'
Jeg skal hjelpe deg med å spare penger.
'
,
'
Du kan legge til sparemål og spareutfordringer!
'
,
'
Sammen kan vi spare penger og nå dine mål!
'
]
isModalOpen
.
value
=
true
speech
.
value
=
[
'
Heisann, jeg er Spare!
'
,
'
Jeg skal hjelpe deg med å spare penger.
'
,
'
Du kan legge til sparemål og spareutfordringer!
'
,
'
Sammen kan vi spare penger og nå dine mål!
'
]
isModalOpen
.
value
=
true
}
</
script
>
...
...
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