Skip to content

Commit

Permalink
Add link to nav bar logo
Browse files Browse the repository at this point in the history
  • Loading branch information
LucHeart committed Jul 5, 2024
1 parent b86b437 commit c2b4b8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/dashboard/Navigation/NavRoot.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<nav class="navbar first-level">
<a class="navbar-logo"><img src="@/assets/images/Logo.svg" alt="OpenShock Logo" /></a>
<a @click="goHome" class="navbar-logo"><img src="@/assets/images/Logo.svg" alt="OpenShock Logo" /></a>
<theme-toggle />
<button class="navbar-toggler" @click="mobileShow = !mobileShow" type="button" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
Expand Down Expand Up @@ -148,6 +148,9 @@ export default {
this.hori.left = pos.left;
this.hori.width = element.innerWidth();
this.hori.height = element.innerHeight();
},
goHome() {
this.$router.push('/dashboard/home');
}
}
}
Expand All @@ -167,6 +170,7 @@ export default {
.navbar-logo {
margin: 0 20px 0 10px;
cursor: pointer;
img {
height: 48px;
Expand Down

0 comments on commit c2b4b8a

Please sign in to comment.