mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-06 20:33:10 -05:00
[web] Fix playlist save not working
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user