Remove exact prop from router links
This commit is contained in:
parent
f1724fb5ea
commit
1234e61e14
|
@ -305,8 +305,8 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.index'}"
|
:to="{name: 'library.index'}"
|
||||||
|
active-class="_active"
|
||||||
>
|
>
|
||||||
<i class="music icon" /><translate translate-context="Sidebar/Navigation/List item.Link/Verb">
|
<i class="music icon" /><translate translate-context="Sidebar/Navigation/List item.Link/Verb">
|
||||||
Browse
|
Browse
|
||||||
|
@ -376,7 +376,6 @@
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.me'}"
|
:to="{name: 'library.me'}"
|
||||||
>
|
>
|
||||||
<i class="music icon" /><translate translate-context="Sidebar/Navigation/List item.Link/Verb">
|
<i class="music icon" /><translate translate-context="Sidebar/Navigation/List item.Link/Verb">
|
||||||
|
@ -444,6 +443,7 @@
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
to="/about"
|
to="/about"
|
||||||
|
active-class="router-link-exact-active active"
|
||||||
>
|
>
|
||||||
<i class="info icon" /><translate translate-context="Sidebar/*/List item.Link">
|
<i class="info icon" /><translate translate-context="Sidebar/*/List item.Link">
|
||||||
About this pod
|
About this pod
|
||||||
|
|
|
@ -42,7 +42,6 @@
|
||||||
v-if="isAuthenticated"
|
v-if="isAuthenticated"
|
||||||
class="ui success button"
|
class="ui success button"
|
||||||
to="/library/radios/build"
|
to="/library/radios/build"
|
||||||
exact
|
|
||||||
>
|
>
|
||||||
<translate translate-context="Content/Radio/Button.Label/Verb">
|
<translate translate-context="Content/Radio/Button.Label/Verb">
|
||||||
Create your own radio
|
Create your own radio
|
||||||
|
|
|
@ -70,6 +70,7 @@ export default createRouter({
|
||||||
import('~/components/About.vue')
|
import('~/components/About.vue')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
// TODO (wvffle): Make it a child of /about to have the active style on the sidebar link
|
||||||
path: '/about/pod',
|
path: '/about/pod',
|
||||||
name: 'about-pod',
|
name: 'about-pod',
|
||||||
component: () =>
|
component: () =>
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
margin: 0 0.5em 0 0;
|
margin: 0 0.5em 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item.active {
|
.item.router-link-exact-active {
|
||||||
border-right: 5px solid var(--vibrant-color);
|
border-right: 5px solid var(--vibrant-color);
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
background: var(--sidebar-active-item-background) !important;
|
background: var(--sidebar-active-item-background) !important;
|
||||||
|
|
|
@ -106,7 +106,6 @@
|
||||||
<div class="ui secondary pointing center aligned menu">
|
<div class="ui secondary pointing center aligned menu">
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'profile.overview', params: routerParams}"
|
:to="{name: 'profile.overview', params: routerParams}"
|
||||||
>
|
>
|
||||||
<translate translate-context="Content/Profile/Link">
|
<translate translate-context="Content/Profile/Link">
|
||||||
|
@ -115,7 +114,6 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'profile.activity', params: routerParams}"
|
:to="{name: 'profile.activity', params: routerParams}"
|
||||||
>
|
>
|
||||||
<translate translate-context="Content/Profile/*">
|
<translate translate-context="Content/Profile/*">
|
||||||
|
|
|
@ -395,7 +395,7 @@
|
||||||
<div class="ui secondary pointing center aligned menu">
|
<div class="ui secondary pointing center aligned menu">
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'channels.detail', params: {id: id}}"
|
:to="{name: 'channels.detail', params: {id: id}}"
|
||||||
>
|
>
|
||||||
<translate translate-context="Content/Channels/Link">
|
<translate translate-context="Content/Channels/Link">
|
||||||
|
@ -404,7 +404,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'channels.detail.episodes', params: {id: id}}"
|
:to="{name: 'channels.detail.episodes', params: {id: id}}"
|
||||||
>
|
>
|
||||||
<translate
|
<translate
|
||||||
|
|
|
@ -66,7 +66,6 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{name: 'library.detail', params: {id: library.uuid}}"
|
:to="{name: 'library.detail', params: {id: library.uuid}}"
|
||||||
exact
|
|
||||||
class="ui button"
|
class="ui button"
|
||||||
>
|
>
|
||||||
<translate translate-context="Content/Library/Card.Button.Label/Noun">
|
<translate translate-context="Content/Library/Card.Button.Label/Noun">
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
<div class="ui secondary pointing center aligned menu">
|
<div class="ui secondary pointing center aligned menu">
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.detail'}"
|
:to="{name: 'library.detail'}"
|
||||||
>
|
>
|
||||||
<translate translate-context="*/*/*">
|
<translate translate-context="*/*/*">
|
||||||
|
@ -171,7 +171,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.detail.albums'}"
|
:to="{name: 'library.detail.albums'}"
|
||||||
>
|
>
|
||||||
<translate translate-context="*/*/*">
|
<translate translate-context="*/*/*">
|
||||||
|
@ -180,7 +180,7 @@
|
||||||
</router-link>
|
</router-link>
|
||||||
<router-link
|
<router-link
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.detail.tracks'}"
|
:to="{name: 'library.detail.tracks'}"
|
||||||
>
|
>
|
||||||
<translate translate-context="*/*/*">
|
<translate translate-context="*/*/*">
|
||||||
|
@ -190,7 +190,7 @@
|
||||||
<router-link
|
<router-link
|
||||||
v-if="isOwner"
|
v-if="isOwner"
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.detail.upload'}"
|
:to="{name: 'library.detail.upload'}"
|
||||||
>
|
>
|
||||||
<i class="upload icon" />
|
<i class="upload icon" />
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
<router-link
|
<router-link
|
||||||
v-if="isOwner"
|
v-if="isOwner"
|
||||||
class="item"
|
class="item"
|
||||||
:exact="true"
|
|
||||||
:to="{name: 'library.detail.edit'}"
|
:to="{name: 'library.detail.edit'}"
|
||||||
>
|
>
|
||||||
<i class="pencil icon" />
|
<i class="pencil icon" />
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
<router-link
|
<router-link
|
||||||
class="ui icon labeled button"
|
class="ui icon labeled button"
|
||||||
:to="{name: 'library.radios.edit', params: {id: radio.id}}"
|
:to="{name: 'library.radios.edit', params: {id: radio.id}}"
|
||||||
exact
|
|
||||||
>
|
>
|
||||||
<i class="pencil icon" />
|
<i class="pencil icon" />
|
||||||
Edit…
|
Edit…
|
||||||
|
@ -100,7 +99,6 @@
|
||||||
v-if="$store.state.auth.username === radio.user.username"
|
v-if="$store.state.auth.username === radio.user.username"
|
||||||
class="ui success icon labeled button"
|
class="ui success icon labeled button"
|
||||||
:to="{name: 'library.radios.edit', params: {id: radio.id}}"
|
:to="{name: 'library.radios.edit', params: {id: radio.id}}"
|
||||||
exact
|
|
||||||
>
|
>
|
||||||
<i class="pencil icon" />
|
<i class="pencil icon" />
|
||||||
Edit…
|
Edit…
|
||||||
|
|
Loading…
Reference in New Issue