This commit is contained in:
booploops 2021-12-17 18:25:30 -08:00
parent 27f49fc8e8
commit 832e0f75bf
2 changed files with 3 additions and 3 deletions

View file

@ -553,7 +553,7 @@ const app = new Vue({
// if the route contains does not include a / then route to the page directly
if (route.indexOf("/") == -1) {
this.page = route
window.location.hash = `${page}/${id}`
window.location.hash = this.page
return
}
let hash = route.split("/")

View file

@ -174,7 +174,7 @@
</div>
<button class="app-sidebar-item" v-for="item in playlists.listing" :key="item.id"
:href="item.href"
@click='page=`playlist_` + item.id ; showingPlaylist = [];getPlaylistFromID(app.page.substring(9))'>
@click='appRoute(`playlist_` + item.id); showingPlaylist = [];getPlaylistFromID(app.page.substring(9))'>
{{ item.attributes.name }}
</button>
</div>
@ -456,7 +456,7 @@
<!-- Sidebar Item -->
<script type="text/x-template" id="sidebar-library-item">
<button class="app-sidebar-item"
:class="$parent.getSidebarItemClass(page)" @click="$parent.page = page">
:class="$parent.getSidebarItemClass(page)" @click="app.appRoute(page)">
{{ name }}
</button>
</script>