mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-03 23:30:09 -05:00
[web] Fix missing buttons on dialogs
This commit is contained in:
parent
6f818b917c
commit
aae2904a57
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<modal-dialog-playable
|
||||
:buttons="buttons"
|
||||
:item="playable"
|
||||
:show="show"
|
||||
@close="$emit('close')"
|
||||
@ -22,7 +23,7 @@ export default {
|
||||
computed: {
|
||||
buttons() {
|
||||
if (this.media_kind_resolved === 'podcast') {
|
||||
if (item.data_kind === 'url') {
|
||||
if (this.item.data_kind === 'url') {
|
||||
return [
|
||||
{ label: 'dialog.album.mark-as-played', action: this.mark_played },
|
||||
{
|
||||
|
@ -10,10 +10,16 @@
|
||||
:url="item.image"
|
||||
:artist="item.artist"
|
||||
:album="item.name"
|
||||
class="is-normal mb-3"
|
||||
class="is-normal mb-5"
|
||||
/>
|
||||
<div class="buttons">
|
||||
<a
|
||||
v-for="button in buttons"
|
||||
:key="button.label"
|
||||
v-t="button.label"
|
||||
class="button is-small"
|
||||
@click="button.action"
|
||||
/>
|
||||
<div v-for="button in buttons" :key="button.label" class="buttons">
|
||||
<a v-t="button.label" class="button is-small" @click="button.action" />
|
||||
</div>
|
||||
<div
|
||||
v-for="property in item.properties?.filter((p) => p.value)"
|
||||
|
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<modal-dialog-playable
|
||||
:buttons="buttons"
|
||||
:item="playable"
|
||||
:show="show"
|
||||
@close="$emit('close')"
|
||||
|
Loading…
x
Reference in New Issue
Block a user