[web] Fix missing buttons on dialogs

This commit is contained in:
Alain Nussbaumer 2025-02-11 19:05:15 +01:00
parent 6f818b917c
commit aae2904a57
3 changed files with 12 additions and 4 deletions

View File

@ -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 },
{ {

View File

@ -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)"

View File

@ -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')"