adjusted mediaitem square for apple-curators
This commit is contained in:
parent
950271e446
commit
c3f3e15875
1 changed files with 8 additions and 3 deletions
|
@ -12,8 +12,8 @@
|
||||||
shadow="subtle"
|
shadow="subtle"
|
||||||
:type="item.type"></mediaitem-artwork>
|
:type="item.type"></mediaitem-artwork>
|
||||||
</div>
|
</div>
|
||||||
<button class="menu-btn" v-if="item.type != 'artists' && item.type != 'stations'" @click="contextMenu"><%- include("../svg/more.svg") %></button>
|
<button class="menu-btn" v-if="!nomenu.includes(item.type)" @click="contextMenu"><%- include("../svg/more.svg") %></button>
|
||||||
<button class="play-btn" @click="app.playMediaItem(item)"><%- include("../svg/play.svg") %></button>
|
<button class="play-btn" v-if="!noplay.includes(item.type)" @click="app.playMediaItem(item)"><%- include("../svg/play.svg") %></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="title item-navigate text-overflow-elipsis" @click.self='app.routeView(item)'>
|
<div class="title item-navigate text-overflow-elipsis" @click.self='app.routeView(item)'>
|
||||||
{{ item.attributes.name }}
|
{{ item.attributes.name }}
|
||||||
|
@ -48,7 +48,9 @@
|
||||||
return {
|
return {
|
||||||
isVisible: false,
|
isVisible: false,
|
||||||
addedToLibrary: false,
|
addedToLibrary: false,
|
||||||
guid: uuidv4()
|
guid: uuidv4(),
|
||||||
|
noplay: ["apple-curators"],
|
||||||
|
nomenu: ["artists", "stations", "apple-curators"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -84,6 +86,9 @@
|
||||||
this.isVisible = isVisible
|
this.isVisible = isVisible
|
||||||
},
|
},
|
||||||
contextMenu(event) {
|
contextMenu(event) {
|
||||||
|
if(this.nomenu.includes(this.item.type)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (!event) { event = this.$refs.main } else { console.log(event) }
|
if (!event) { event = this.$refs.main } else { console.log(event) }
|
||||||
let self = this
|
let self = this
|
||||||
let useMenu = "normal"
|
let useMenu = "normal"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue