Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
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-2024-07
frontend
Commits
280a3ccd
Commit
280a3ccd
authored
10 months ago
by
Anders Høvik
Browse files
Options
Downloads
Patches
Plain Diff
Fix: fixed image-link to SavingGoals in menu-bar
parent
2f7839f9
No related branches found
Branches containing commit
No related tags found
2 merge requests
!54
Fix/menu bug
,
!51
Fix/menu bug
Pipeline
#280687
passed with warnings
10 months ago
Stage: install
Stage: build
Stage: test
Stage: lint
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/BaseComponents/Menu.vue
+11
-11
11 additions, 11 deletions
src/components/BaseComponents/Menu.vue
with
11 additions
and
11 deletions
src/components/BaseComponents/Menu.vue
+
11
−
11
View file @
280a3ccd
<
template
>
<
template
>
<nav
id=
"navBar"
class=
"navbar navbar-expand-xl"
>
<nav
id=
"navBar"
class=
"navbar navbar-expand-xl"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
<a
class=
"navbar-brand"
href=
"#"
@
click
=
"toSavingGoals
"
id=
"home
"
>
<router-link
class=
"navbar-brand"
id=
"home"
:to
=
"toSavingGoals
()
"
>
<img
id=
"logoImg"
src=
"/src/assets/Sparesti-logo.png"
alt=
"Sparesti-logo"
width=
"60"
>
<img
id=
"logoImg"
src=
"/src/assets/Sparesti-logo.png"
alt=
"Sparesti-logo"
width=
"60"
>
<span
id=
"logo"
class=
"text-white"
>
Sparesti
</span>
<span
id=
"logo"
class=
"text-white"
>
Sparesti
</span>
</
a
>
</
router-link
>
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
<button
class=
"navbar-toggler"
type=
"button"
data-bs-toggle=
"collapse"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
data-bs-target=
"#navbarSupportedContent"
aria-controls=
"navbarSupportedContent"
aria-expanded=
"false"
aria-label=
"Toggle navigation"
>
aria-label=
"Toggle navigation"
>
...
@@ -13,19 +13,19 @@
...
@@ -13,19 +13,19 @@
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<div
class=
"collapse navbar-collapse"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav ms-auto mb-2 mb-lg-0 ui-menu"
>
<ul
class=
"navbar-nav ms-auto mb-2 mb-lg-0 ui-menu"
>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<router-link
class=
"nav-link text-white"
to=
"
/roadmap
"
><img
<router-link
class=
"nav-link text-white"
:
to=
"
toSavingGoals()
"
><img
src=
"@/assets/icons/saving.svg"
>
Saving goals
</router-link>
src=
"@/assets/icons/saving.svg"
>
Saving goals
</router-link>
</li>
</li>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<router-link
class=
"nav-link text-white"
to=
"
/l
eaderboard"
><img
<router-link
class=
"nav-link text-white"
:
to=
"
toL
eaderboard
()
"
><img
src=
"@/assets/icons/leaderboard.svg"
>
Leaderboard
</router-link>
src=
"@/assets/icons/leaderboard.svg"
>
Leaderboard
</router-link>
</li>
</li>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<router-link
class=
"nav-link text-white"
to=
"
/n
ews"
><img
<router-link
class=
"nav-link text-white"
:
to=
"
toN
ews
()
"
><img
src=
"@/assets/icons/newsletter.svg"
>
News
</router-link>
src=
"@/assets/icons/newsletter.svg"
>
News
</router-link>
</li>
</li>
<li
class=
"nav-item"
>
<li
class=
"nav-item"
>
<router-link
class=
"nav-link text-white"
to=
"
/shop
"
><img
<router-link
class=
"nav-link text-white"
:
to=
"
toStore()
"
><img
src=
"@/assets/icons/storefront.svg"
>
Store
</router-link>
src=
"@/assets/icons/storefront.svg"
>
Store
</router-link>
</li>
</li>
<li
v-if=
"userStore.isLoggedIn"
class=
"nav-item dropdown"
>
<li
v-if=
"userStore.isLoggedIn"
class=
"nav-item dropdown"
>
...
@@ -66,7 +66,7 @@ const router = useRouter();
...
@@ -66,7 +66,7 @@ const router = useRouter();
const
userStore
:
any
=
useUserInfoStore
();
const
userStore
:
any
=
useUserInfoStore
();
function
toHome
()
{
function
toHome
()
{
r
outer
.
push
(
'
/
'
)
r
eturn
'
/
'
}
}
function
toBudget
()
{
function
toBudget
()
{
...
@@ -74,19 +74,19 @@ function toBudget() {
...
@@ -74,19 +74,19 @@ function toBudget() {
}
}
function
toSavingGoals
()
{
function
toSavingGoals
()
{
r
outer
.
push
(
'
/roadmap
'
)
r
eturn
'
/roadmap
'
}
}
function
toLeaderboard
()
{
function
toLeaderboard
()
{
r
outer
.
push
(
'
/leaderboard
'
)
r
eturn
'
/leaderboard
'
}
}
function
toNews
()
{
function
toNews
()
{
r
outer
.
push
(
'
/news
'
)
r
eturn
'
/news
'
}
}
function
toStore
()
{
function
toStore
()
{
r
outer
.
push
(
'
/shop
'
)
r
eturn
'
/shop
'
}
}
function
toSetting
()
{
function
toSetting
()
{
...
...
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