mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[web] Use named route for the page queue
Switching to named routes in order to reduce future maintenance.
This commit is contained in:
parent
9f3fee08b2
commit
ed654381b8
@ -107,7 +107,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-brand is-flex-grow-1">
|
<div class="navbar-brand is-flex-grow-1">
|
||||||
<navbar-item-link :to="{ path: '/' }" exact class="mr-auto">
|
<navbar-item-link :to="{ name: 'queue' }" exact class="mr-auto">
|
||||||
<mdicon class="icon" name="playlist-play" size="24" />
|
<mdicon class="icon" name="playlist-play" size="24" />
|
||||||
</navbar-item-link>
|
</navbar-item-link>
|
||||||
<navbar-item-link
|
<navbar-item-link
|
||||||
|
@ -49,11 +49,6 @@ export const router = createRouter({
|
|||||||
name: 'about',
|
name: 'about',
|
||||||
path: '/about'
|
path: '/about'
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: '/',
|
|
||||||
name: 'PageQueue',
|
|
||||||
component: PageQueue
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
component: PageAudiobooksAlbum,
|
component: PageAudiobooksAlbum,
|
||||||
meta: { show_progress: true },
|
meta: { show_progress: true },
|
||||||
@ -215,6 +210,11 @@ export const router = createRouter({
|
|||||||
component: PagePlaylist,
|
component: PagePlaylist,
|
||||||
meta: { show_progress: true }
|
meta: { show_progress: true }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
component: PageQueue,
|
||||||
|
name: 'queue',
|
||||||
|
path: '/'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/search',
|
path: '/search',
|
||||||
redirect: '/search/library'
|
redirect: '/search/library'
|
||||||
|
Loading…
Reference in New Issue
Block a user