diff --git a/front/package.json b/front/package.json index 34231d27b..a72bf7678 100644 --- a/front/package.json +++ b/front/package.json @@ -43,7 +43,7 @@ "vue-upload-component": "2.8.22", "vue3-gettext": "2.2.0-alpha.1", "vue3-lazyload": "0.2.5-beta", - "vuedraggable": "2.24.3", + "vuedraggable": "4.1.0", "vuex": "4.0.2", "vuex-persistedstate": "4.1.0", "vuex-router-sync": "5.0.0" diff --git a/front/src/components/Queue.vue b/front/src/components/Queue.vue index 9f1e32a54..7f5d39563 100644 --- a/front/src/components/Queue.vue +++ b/front/src/components/Queue.vue @@ -156,7 +156,7 @@ :title="labels.previousTrack" :aria-label="labels.previousTrack" class="control" - :disabled="emptyQueue" + :disabled="emptyQueue ? true : null" @click.prevent.stop="$store.dispatch('queue/previous')" > @@ -187,7 +187,7 @@ :title="labels.next" :aria-label="labels.next" class="control" - :disabled="!hasNext" + :disabled="hasNext ? true : null" @click.prevent.stop="$store.dispatch('queue/next')" > @@ -237,76 +237,78 @@ - - - - + + + + - - - - + + + + + +
- - +
- + + + - - - - - - - - -
+ + + + +
@@ -450,7 +452,8 @@ export default { this.$store.commit('ui/queueFocused', null) } }, - immediate: true + immediate: true, + deep: true }, '$route.fullPath' () { this.$store.commit('ui/queueFocused', null) diff --git a/front/src/components/audio/track/Table.vue b/front/src/components/audio/track/Table.vue index 22c16db51..57de531df 100644 --- a/front/src/components/audio/track/Table.vue +++ b/front/src/components/audio/track/Table.vue @@ -163,7 +163,6 @@ import axios from 'axios' import TrackRow from '~/components/audio/track/Row.vue' import TrackMobileRow from '~/components/audio/track/MobileRow.vue' import Pagination from '~/components/Pagination.vue' -import { unique } from '~/utils/filters' export default { components: { diff --git a/front/src/components/playlists/Editor.vue b/front/src/components/playlists/Editor.vue index aa3a1546d..824d3a555 100644 --- a/front/src/components/playlists/Editor.vue +++ b/front/src/components/playlists/Editor.vue @@ -127,46 +127,46 @@
- - - - - - +
- {{ plt.index + 1 }} - - - - - {{ plt.track.title }}
- {{ plt.track.artist.name }} -
- -
@@ -177,6 +177,7 @@