mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
import{_ as u,e as c,r as p,o as m,c as r,d as i,w as _,a as e,t as n,k as C,T as x}from"./index.js";const h={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play(){this.$emit("close"),c.player_play_expression(`composer is "${this.composer.name}" and media_kind is music`,!1)},queue_add(){this.$emit("close"),c.queue_expression_add(`composer is "${this.composer.name}" and media_kind is music`)},queue_add_next(){this.$emit("close"),c.queue_expression_add_next(`composer is "${this.composer.name}" and media_kind is music`)},open_albums(){this.$emit("close"),this.$router.push({name:"music-composer-albums",params:{name:this.composer.name}})},open_tracks(){this.$router.push({name:"music-composer-tracks",params:{name:this.composer.name}})}}},k={key:0,class:"modal is-active"},f={class:"modal-content fd-modal-card"},g={class:"card"},b={class:"card-content"},y={class:"title is-4"},v=["textContent"],q=["textContent"],$=["textContent"],z=["textContent"],w=["textContent"],B=["textContent"],D=["textContent"],M={class:"card-footer"},N=["textContent"],V=["textContent"],T=["textContent"];function E(a,s,l,H,I,o){const d=p("mdicon");return m(),r("div",null,[i(x,{name:"fade"},{default:_(()=>[l.show?(m(),r("div",k,[e("div",{class:"modal-background",onClick:s[0]||(s[0]=t=>a.$emit("close"))}),e("div",f,[e("div",g,[e("div",b,[e("p",y,[e("a",{class:"has-text-link",onClick:s[1]||(s[1]=(...t)=>o.open_albums&&o.open_albums(...t)),textContent:n(l.composer.name)},null,8,v)]),e("p",null,[e("span",{class:"heading",textContent:n(a.$t("dialog.composer.albums"))},null,8,q),e("a",{class:"has-text-link is-6",onClick:s[2]||(s[2]=(...t)=>o.open_albums&&o.open_albums(...t)),textContent:n(l.composer.album_count)},null,8,$)]),e("p",null,[e("span",{class:"heading",textContent:n(a.$t("dialog.composer.tracks"))},null,8,z),e("a",{class:"has-text-link is-6",onClick:s[3]||(s[3]=(...t)=>o.open_tracks&&o.open_tracks(...t)),textContent:n(l.composer.track_count)},null,8,w)]),e("p",null,[e("span",{class:"heading",textContent:n(a.$t("dialog.composer.duration"))},null,8,B),e("span",{class:"title is-6",textContent:n(a.$filters.durationInHours(l.composer.length_ms))},null,8,D)])]),e("footer",M,[e("a",{class:"card-footer-item has-text-dark",onClick:s[4]||(s[4]=(...t)=>o.queue_add&&o.queue_add(...t))},[i(d,{class:"icon",name:"playlist-plus",size:"16"}),e("span",{class:"is-size-7",textContent:n(a.$t("dialog.composer.add"))},null,8,N)]),e("a",{class:"card-footer-item has-text-dark",onClick:s[5]||(s[5]=(...t)=>o.queue_add_next&&o.queue_add_next(...t))},[i(d,{class:"icon",name:"playlist-play",size:"16"}),e("span",{class:"is-size-7",textContent:n(a.$t("dialog.composer.add-next"))},null,8,V)]),e("a",{class:"card-footer-item has-text-dark",onClick:s[6]||(s[6]=(...t)=>o.play&&o.play(...t))},[i(d,{class:"icon",name:"play",size:"16"}),e("span",{class:"is-size-7",textContent:n(a.$t("dialog.composer.play"))},null,8,T)])])])]),e("button",{class:"modal-close is-large","aria-label":"close",onClick:s[7]||(s[7]=t=>a.$emit("close"))})])):C("",!0)]),_:1})])}const j=u(h,[["render",E]]);export{j as M};
|