mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
2 lines
1.4 KiB
JavaScript
2 lines
1.4 KiB
JavaScript
import{C as f}from"./ContentWithHeading.js";import{G as b,a as h}from"./GroupByList.js";import{I as g}from"./IndexButtonList.js";import{L as x}from"./ListAlbums.js";import{T as k}from"./TabsAudiobooks.js";import{_ as w,r as a,o as C,c as A,d as i,w as l,e as y,a as r,t as m}from"./index.js";import"./CoverArtwork.js";import"./ModalDialogAlbum.js";const u={load(t){return y.library_albums("audiobook")},set(t,e){t.albums=new b(e.data),t.albums.group(h("name_sort",!0))}},B={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:k,ContentWithHeading:f,IndexButtonList:g,ListAlbums:x},beforeRouteEnter(t,e,s){u.load(t).then(n=>{s(o=>u.set(o,n))})},beforeRouteUpdate(t,e,s){if(!this.albums.isEmpty()){s();return}const n=this;u.load(t).then(o=>{u.set(n,o),s()})},data(){return{albums:new b}}},L={class:"fd-page-with-tabs"},E=["textContent"],N=["textContent"];function $(t,e,s,n,o,v){const c=a("tabs-audiobooks"),d=a("index-button-list"),p=a("list-albums"),_=a("content-with-heading");return C(),A("div",L,[i(c),i(_,null,{options:l(()=>[i(d,{index:o.albums.indexList},null,8,["index"])]),"heading-left":l(()=>[r("p",{class:"title is-4",textContent:m(t.$t("page.audiobooks.albums.title"))},null,8,E),r("p",{class:"heading",textContent:m(t.$t("page.audiobooks.albums.count",{count:o.albums.count}))},null,8,N)]),content:l(()=>[i(p,{albums:o.albums},null,8,["albums"])]),_:1})])}const H=w(B,[["render",$]]);export{H as default};
|