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