From 863e8200e4601accdc81dff4c3db8606b9a8b18a Mon Sep 17 00:00:00 2001 From: ArneBo Date: Wed, 12 Feb 2025 11:39:28 +0100 Subject: [PATCH] fix(front): playlist modal --- front/src/components/playlists/Form.vue | 67 ++--- .../components/playlists/PlaylistModal.vue | 282 +++++++++--------- 2 files changed, 167 insertions(+), 182 deletions(-) diff --git a/front/src/components/playlists/Form.vue b/front/src/components/playlists/Form.vue index 2f8b4058b..b2c39851d 100644 --- a/front/src/components/playlists/Form.vue +++ b/front/src/components/playlists/Form.vue @@ -7,7 +7,6 @@ import { useI18n } from 'vue-i18n' import { useStore } from '~/store' import axios from 'axios' -import $ from 'jquery' import useSharedLabels from '~/composables/locale/useSharedLabels' import useLogger from '~/composables/useLogger' @@ -59,10 +58,6 @@ const privacyLevelChoices = { } as const satisfies Record; const el = useCurrentElement() -onMounted(async () => { - await nextTick() - $(el.value).find('.dropdown').dropdown() -}) const isLoading = ref(false) const submit = async () => { @@ -103,11 +98,11 @@ const submit = async () => { -

{{ t('components.playlists.Form.header.createPlaylist') }} -

+ { -
-
- - -
-
- -
-
- - -
+
+ + +
+
+ +
+
+ +
diff --git a/front/src/components/playlists/PlaylistModal.vue b/front/src/components/playlists/PlaylistModal.vue index 0124f60c7..c66e1ed78 100644 --- a/front/src/components/playlists/PlaylistModal.vue +++ b/front/src/components/playlists/PlaylistModal.vue @@ -16,6 +16,7 @@ import Button from '~/components/ui/Button.vue' import Link from '~/components/ui/Link.vue' import Alert from '~/components/ui/Alert.vue' import Input from '~/components/ui/Input.vue' +import Spacer from '~/components/ui/Spacer.vue' const logger = useLogger() const store = useStore() @@ -83,6 +84,9 @@ const addToPlaylist = async (playlistId: number, allowDuplicates: boolean) => { } store.dispatch('playlists/fetchOwn') +watch(playlistNameFilter, () => console.log(playlistNameFilter.value)) +watch(sortedPlaylists, () => console.log(sortedPlaylists.value)) +watch(playlists, () => console.log(playlists.value))