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 the route contains does not include a / then route to the page directly
if (route.indexOf("/") == -1) { if (route.indexOf("/") == -1) {
this.page = route this.page = route
window.location.hash = `${page}/${id}` window.location.hash = this.page
return return
} }
let hash = route.split("/") let hash = route.split("/")

View file

@ -174,7 +174,7 @@
</div> </div>
<button class="app-sidebar-item" v-for="item in playlists.listing" :key="item.id" <button class="app-sidebar-item" v-for="item in playlists.listing" :key="item.id"
:href="item.href" :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 }} {{ item.attributes.name }}
</button> </button>
</div> </div>
@ -456,7 +456,7 @@
<!-- Sidebar Item --> <!-- Sidebar Item -->
<script type="text/x-template" id="sidebar-library-item"> <script type="text/x-template" id="sidebar-library-item">
<button class="app-sidebar-item" <button class="app-sidebar-item"
:class="$parent.getSidebarItemClass(page)" @click="$parent.page = page"> :class="$parent.getSidebarItemClass(page)" @click="app.appRoute(page)">
{{ name }} {{ name }}
</button> </button>
</script> </script>