[web] Fix playlist save not working

This commit is contained in:
Alain Nussbaumer
2025-02-16 11:07:33 +01:00
parent aaea7135a0
commit 330023c940
5 changed files with 33 additions and 25 deletions

View File

@@ -13,7 +13,11 @@
:class="{ 'with-progress': show_progress }"
@click="play(item.item)"
>
<mdicon v-if="show_icon" class="media-left icon" name="file-outline" />
<mdicon
v-if="show_icon"
class="media-left icon"
name="file-music-outline"
/>
<div class="media-content">
<div
class="is-size-6 has-text-weight-bold"

View File

@@ -20,7 +20,7 @@
:disabled="loading"
@input="check_name"
/>
<mdicon class="icon is-left" name="file-music" size="16" />
<mdicon class="icon is-left" name="playlist-music" size="16" />
</p>
</div>
</form>
@@ -44,22 +44,24 @@ export default {
playlist_name: ''
}
},
actions() {
if (loading) {
return [{ label: this.$t('dialog.playlist.save.saving'), icon: 'web' }]
}
return [
{
label: this.$t('dialog.playlist.save.cancel'),
handler: this.cancel,
icon: 'cancel'
},
{
label: this.$t('dialog.playlist.save.save'),
handler: this.save,
icon: 'save'
computed: {
actions() {
if (this.loading) {
return [{ label: this.$t('dialog.playlist.save.saving'), icon: 'web' }]
}
]
return [
{
label: this.$t('dialog.playlist.save.cancel'),
handler: this.cancel,
icon: 'cancel'
},
{
label: this.$t('dialog.playlist.save.save'),
handler: this.save,
icon: 'download'
}
]
}
},
watch: {
show() {