mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-03 23:30:09 -05:00
[web] Fix playlist save not working
This commit is contained in:
parent
aaea7135a0
commit
330023c940
@ -13,7 +13,11 @@
|
|||||||
:class="{ 'with-progress': show_progress }"
|
:class="{ 'with-progress': show_progress }"
|
||||||
@click="play(item.item)"
|
@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="media-content">
|
||||||
<div
|
<div
|
||||||
class="is-size-6 has-text-weight-bold"
|
class="is-size-6 has-text-weight-bold"
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
:disabled="loading"
|
:disabled="loading"
|
||||||
@input="check_name"
|
@input="check_name"
|
||||||
/>
|
/>
|
||||||
<mdicon class="icon is-left" name="file-music" size="16" />
|
<mdicon class="icon is-left" name="playlist-music" size="16" />
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@ -44,22 +44,24 @@ export default {
|
|||||||
playlist_name: ''
|
playlist_name: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions() {
|
computed: {
|
||||||
if (loading) {
|
actions() {
|
||||||
return [{ label: this.$t('dialog.playlist.save.saving'), icon: 'web' }]
|
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: 'save'
|
|
||||||
}
|
}
|
||||||
]
|
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: {
|
watch: {
|
||||||
show() {
|
show() {
|
||||||
|
@ -15,15 +15,14 @@ import {
|
|||||||
mdiChevronLeft,
|
mdiChevronLeft,
|
||||||
mdiChevronUp,
|
mdiChevronUp,
|
||||||
mdiClose,
|
mdiClose,
|
||||||
mdiContentSave,
|
|
||||||
mdiDelete,
|
mdiDelete,
|
||||||
mdiDeleteEmpty,
|
mdiDeleteEmpty,
|
||||||
mdiDotsHorizontal,
|
mdiDotsHorizontal,
|
||||||
mdiDotsVertical,
|
mdiDotsVertical,
|
||||||
|
mdiDownload,
|
||||||
mdiDragHorizontal,
|
mdiDragHorizontal,
|
||||||
mdiFastForward30,
|
mdiFastForward30,
|
||||||
mdiFileMusic,
|
mdiFileMusicOutline,
|
||||||
mdiFileOutline,
|
|
||||||
mdiFire,
|
mdiFire,
|
||||||
mdiFolder,
|
mdiFolder,
|
||||||
mdiFolderOpen,
|
mdiFolderOpen,
|
||||||
@ -39,6 +38,7 @@ import {
|
|||||||
mdiPencil,
|
mdiPencil,
|
||||||
mdiPipe,
|
mdiPipe,
|
||||||
mdiPlay,
|
mdiPlay,
|
||||||
|
mdiPlaylistMusic,
|
||||||
mdiPlaylistPlay,
|
mdiPlaylistPlay,
|
||||||
mdiPlaylistPlus,
|
mdiPlaylistPlus,
|
||||||
mdiRadio,
|
mdiRadio,
|
||||||
@ -81,15 +81,14 @@ export const icons = {
|
|||||||
mdiChevronLeft,
|
mdiChevronLeft,
|
||||||
mdiChevronUp,
|
mdiChevronUp,
|
||||||
mdiClose,
|
mdiClose,
|
||||||
mdiContentSave,
|
|
||||||
mdiDelete,
|
mdiDelete,
|
||||||
mdiDeleteEmpty,
|
mdiDeleteEmpty,
|
||||||
mdiDotsHorizontal,
|
mdiDotsHorizontal,
|
||||||
mdiDotsVertical,
|
mdiDotsVertical,
|
||||||
|
mdiDownload,
|
||||||
mdiDragHorizontal,
|
mdiDragHorizontal,
|
||||||
mdiFastForward30,
|
mdiFastForward30,
|
||||||
mdiFileMusic,
|
mdiFileMusicOutline,
|
||||||
mdiFileOutline,
|
|
||||||
mdiFire,
|
mdiFire,
|
||||||
mdiFolder,
|
mdiFolder,
|
||||||
mdiFolderOpen,
|
mdiFolderOpen,
|
||||||
@ -105,6 +104,7 @@ export const icons = {
|
|||||||
mdiPencil,
|
mdiPencil,
|
||||||
mdiPipe,
|
mdiPipe,
|
||||||
mdiPlay,
|
mdiPlay,
|
||||||
|
mdiPlaylistMusic,
|
||||||
mdiPlaylistPlay,
|
mdiPlaylistPlay,
|
||||||
mdiPlaylistPlus,
|
mdiPlaylistPlus,
|
||||||
mdiRadio,
|
mdiRadio,
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
:disabled="queue_items.length === 0"
|
:disabled="queue_items.length === 0"
|
||||||
@click="save_dialog"
|
@click="save_dialog"
|
||||||
>
|
>
|
||||||
<mdicon class="icon" name="content-save" size="16" />
|
<mdicon class="icon" name="download" size="16" />
|
||||||
<span v-text="$t('page.queue.save')" />
|
<span v-text="$t('page.queue.save')" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,6 +4,8 @@ export const useConfigurationStore = defineStore('ConfigurationStore', {
|
|||||||
state: () => ({
|
state: () => ({
|
||||||
buildoptions: [],
|
buildoptions: [],
|
||||||
version: '',
|
version: '',
|
||||||
websocket_port: 0
|
websocket_port: 0,
|
||||||
|
allow_modifying_stored_playlists: false,
|
||||||
|
default_playlist_directory: ''
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user