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>
|
<template>
|
||||||
<modal-dialog-playable
|
<modal-dialog-playable
|
||||||
|
:buttons="buttons"
|
||||||
:item="playable"
|
:item="playable"
|
||||||
:show="show"
|
:show="show"
|
||||||
@close="$emit('close')"
|
@close="$emit('close')"
|
||||||
@ -22,7 +23,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
buttons() {
|
buttons() {
|
||||||
if (this.media_kind_resolved === 'podcast') {
|
if (this.media_kind_resolved === 'podcast') {
|
||||||
if (item.data_kind === 'url') {
|
if (this.item.data_kind === 'url') {
|
||||||
return [
|
return [
|
||||||
{ label: 'dialog.album.mark-as-played', action: this.mark_played },
|
{ label: 'dialog.album.mark-as-played', action: this.mark_played },
|
||||||
{
|
{
|
||||||
|
@ -10,10 +10,16 @@
|
|||||||
:url="item.image"
|
:url="item.image"
|
||||||
:artist="item.artist"
|
:artist="item.artist"
|
||||||
:album="item.name"
|
: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>
|
||||||
<div
|
<div
|
||||||
v-for="property in item.properties?.filter((p) => p.value)"
|
v-for="property in item.properties?.filter((p) => p.value)"
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<modal-dialog-playable
|
<modal-dialog-playable
|
||||||
|
:buttons="buttons"
|
||||||
:item="playable"
|
:item="playable"
|
||||||
:show="show"
|
:show="show"
|
||||||
@close="$emit('close')"
|
@close="$emit('close')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user