Skip to content

Commit

Permalink
Fix logo link for the Header logo (Docs) (#2694)
Browse files Browse the repository at this point in the history
* Team page content updating

* Team page content updating

* add Team link to Landing Header

* add Team link to Landing Header

* change landing header banner text

* change landing header team link

* fix header logo link (docs)

* update link

Co-authored-by: Rustem Nasyrov <nasyroff.rus@gmail.com>
  • Loading branch information
zvenigorodskaia and rustem-nasyrov committed Nov 22, 2022
1 parent 86ddb5a commit f861b44
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/docs/src/components/header/Header.vue
Expand Up @@ -7,14 +7,14 @@
:minimized="isSidebarVisible"
@toggleSidebar="toggleSidebar"
/>
<router-link :to="currentRoute" custom v-slot="{ href }">
<a :href="href" aria-label="go to the documentation main page">
<router-link :to="overviewLink.to" custom v-slot="{ navigate, href }">
<a :href="href" :aria-label="overviewLink.text" :title="overviewLink.text">
<vuestic-logo
class="header__logo__wrapper__image"
height="30"
width="150"
aria-hidden="true"
@click="$router.go(0)"
@click="navigate"
/>
</a>
</router-link>
Expand Down Expand Up @@ -74,6 +74,13 @@ export default class Header extends mixins(PropsMixin) {
return this.$root?.$i18n?.locale
}
get overviewLink () {
return {
text: this.$t('menu.overview'),
to: `/${this.locale}/introduction/overview`,
}
}
get links () {
return [
{
Expand All @@ -92,10 +99,6 @@ export default class Header extends mixins(PropsMixin) {
]
}
get currentRoute () {
return { to: this.$route.path }
}
toggleSidebar () {
this.$emit('update:isSidebarVisible', !this.isSidebarVisible)
}
Expand Down

0 comments on commit f861b44

Please sign in to comment.