diff --git a/front/src/components/playlists/Editor.vue b/front/src/components/playlists/Editor.vue index 79046e791..b63d11ce0 100644 --- a/front/src/components/playlists/Editor.vue +++ b/front/src/components/playlists/Editor.vue @@ -14,6 +14,9 @@ import draggable from 'vuedraggable' import axios from 'axios' import PlaylistForm from '~/components/playlists/Form.vue' +import Layout from '~/components/ui/Layout.vue' +import Button from '~/components/ui/Button.vue' +import Alert from '~/components/ui/Alert.vue' interface Events { (e: 'update:playlistTracks', value: PlaylistTrack[]): void @@ -163,7 +166,7 @@ const insertMany = async (insertedTracks: number[], allowDuplicates: boolean) => - + {{ t('components.playlists.Editor.header.editor') }} - {{ t('components.playlists.Editor.loading.sync') }} @@ -179,10 +181,10 @@ const insertMany = async (insertedTracks: number[], allowDuplicates: boolean) => {{ t('components.playlists.Editor.error.sync') }} - {{ error }} - + - {{ t('components.playlists.Editor.warning.duplicate') }} @@ -211,28 +213,27 @@ const insertMany = async (insertedTracks: number[], allowDuplicates: boolean) => {{ track }} - {{ t('components.playlists.Editor.button.addDuplicate') }} - - + + - + {{ t('components.playlists.Editor.message.sync') }} - - - - {{ t('components.playlists.Editor.button.insertFromQueue', queueTracks.length) }} - + {{ t('components.playlists.Editor.help.reorder') }} + - - + diff --git a/front/src/components/playlists/Form.vue b/front/src/components/playlists/Form.vue index 9dd0605d0..1f1f6bdb3 100644 --- a/front/src/components/playlists/Form.vue +++ b/front/src/components/playlists/Form.vue @@ -12,6 +12,11 @@ import $ from 'jquery' import useSharedLabels from '~/composables/locale/useSharedLabels' import useLogger from '~/composables/useLogger' +import Layout from '~/components/ui/Layout.vue' +import Alert from '~/components/ui/Alert.vue' +import Button from '~/components/ui/Button.vue' +import Input from '~/components/ui/Input.vue' + interface Events { (e: 'update:playlist', value: Playlist): void } @@ -103,19 +108,17 @@ const submit = async () => { - {{ t('components.playlists.Form.header.createPlaylist') }} - @@ -125,11 +128,11 @@ const submit = async () => { {{ t('components.playlists.Form.header.createSuccess') }} - - + {{ t('components.playlists.Form.header.createFailure') }} @@ -142,18 +145,18 @@ const submit = async () => { {{ error }} - + {{ t('components.playlists.Form.label.name') }} - + /> {{ t('components.playlists.Form.label.visibility') }} @@ -173,7 +176,8 @@ const submit = async () => { - @@ -183,8 +187,8 @@ const submit = async () => { {{ t('components.playlists.Form.button.create') }} - + - +
{{ t('components.playlists.Editor.warning.duplicate') }} @@ -211,28 +213,27 @@ const insertMany = async (insertedTracks: number[], allowDuplicates: boolean) => {{ track }} - {{ t('components.playlists.Editor.button.addDuplicate') }} - -