mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-14 00:10:10 -04:00
[web] Fix missing style for read items
This commit is contained in:
parent
be44c0ce9f
commit
ed8e5710f3
@ -4,6 +4,7 @@
|
|||||||
:key="item.itemId"
|
:key="item.itemId"
|
||||||
:icon="icon"
|
:icon="icon"
|
||||||
:is-item="item.isItem"
|
:is-item="item.isItem"
|
||||||
|
:is-read="isRead(item.item)"
|
||||||
:index="item.index"
|
:index="item.index"
|
||||||
:lines="[item.item.title, item.item.artist, item.item.album]"
|
:lines="[item.item.title, item.item.artist, item.item.album]"
|
||||||
:progress="progress(item.item)"
|
:progress="progress(item.item)"
|
||||||
@ -38,6 +39,9 @@ export default {
|
|||||||
return { selectedItem: {}, showDetailsModal: false }
|
return { selectedItem: {}, showDetailsModal: false }
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
isRead(item) {
|
||||||
|
return item.media_kind === 'podcast' && item.play_count > 0
|
||||||
|
},
|
||||||
open(item) {
|
open(item) {
|
||||||
if (this.uris) {
|
if (this.uris) {
|
||||||
webapi.player_play_uri(this.uris, false, this.items.items.indexOf(item))
|
webapi.player_play_uri(this.uris, false, this.items.items.indexOf(item))
|
||||||
@ -55,12 +59,9 @@ export default {
|
|||||||
this.selectedItem = item
|
this.selectedItem = item
|
||||||
this.showDetailsModal = true
|
this.showDetailsModal = true
|
||||||
},
|
},
|
||||||
// 'has-text-grey': item.item.media_kind === 'podcast' && item.item.play_count > 0
|
|
||||||
progress(item) {
|
progress(item) {
|
||||||
if (item.item) {
|
if (this.showProgress && item.seek_ms > 0) {
|
||||||
if (this.showProgress && item.item.seek_ms > 0) {
|
return item.seek_ms / item.length_ms
|
||||||
return item.item.seek_ms / item.item.length_ms
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user