diff --git a/front/src/components/album/Widget.vue b/front/src/components/album/Widget.vue index eceede998..e059df6e6 100644 --- a/front/src/components/album/Widget.vue +++ b/front/src/components/album/Widget.vue @@ -6,7 +6,6 @@ import { useStore } from '~/store' import axios from 'axios' -import usePage from '~/composables/navigation/usePage' import useErrorHandler from '~/composables/useErrorHandler' import AlbumCard from '~/components/album/Card.vue' @@ -34,7 +33,7 @@ const store = useStore() const query = ref('') const albums = reactive([] as Album[]) const count = ref(0) -const page = usePage() +const page = ref(1) const nextPage = ref() const isLoading = ref(false) diff --git a/front/src/components/artist/Widget.vue b/front/src/components/artist/Widget.vue index 779ed1226..db7330b61 100644 --- a/front/src/components/artist/Widget.vue +++ b/front/src/components/artist/Widget.vue @@ -7,7 +7,6 @@ import { useStore } from '~/store' import axios from 'axios' import useErrorHandler from '~/composables/useErrorHandler' -import usePage from '~/composables/navigation/usePage' import ArtistCard from '~/components/artist/Card.vue' import Section from '~/components/ui/Section.vue' @@ -34,7 +33,7 @@ const store = useStore() const query = ref('') const artists = reactive([] as Artist[]) const count = ref(0) -const page = usePage() +const page = ref(1) const nextPage = ref() const isLoading = ref(false) diff --git a/front/src/components/audio/ChannelsWidget.vue b/front/src/components/audio/ChannelsWidget.vue index ac45a152b..f156416ce 100644 --- a/front/src/components/audio/ChannelsWidget.vue +++ b/front/src/components/audio/ChannelsWidget.vue @@ -7,8 +7,6 @@ import { clone } from 'lodash-es' import axios from 'axios' -import usePage from '~/composables/navigation/usePage' - import ChannelCard from '~/components/audio/ChannelCard.vue' import Loader from '~/components/ui/Loader.vue' import Section from '~/components/ui/Section.vue' @@ -33,7 +31,7 @@ const props = withDefaults(defineProps(), { const result = ref() const errors = ref([] as string[]) const nextPage = ref() -const page = usePage() +const page = ref(1) const count = ref(0) const isLoading = ref(false) diff --git a/front/src/components/audio/track/Widget.vue b/front/src/components/audio/track/Widget.vue index b15d9aae8..268ca04a5 100644 --- a/front/src/components/audio/track/Widget.vue +++ b/front/src/components/audio/track/Widget.vue @@ -8,7 +8,6 @@ import { useI18n } from 'vue-i18n' import { getArtistCoverUrl } from '~/utils/utils' import axios from 'axios' -import usePage from '~/composables/navigation/usePage' import useWebSocketHandler from '~/composables/useWebSocketHandler' import PlayButton from '~/components/audio/PlayButton.vue' @@ -50,7 +49,7 @@ const { t } = useI18n() const objects = reactive([] as Listening[]) const count = ref(0) -const page = usePage() +const page = ref(1) const isLoading = ref(false) diff --git a/front/src/components/playlists/Widget.vue b/front/src/components/playlists/Widget.vue index 988d83a36..1031e45b3 100644 --- a/front/src/components/playlists/Widget.vue +++ b/front/src/components/playlists/Widget.vue @@ -8,7 +8,6 @@ import { useI18n } from 'vue-i18n' import axios from 'axios' import useErrorHandler from '~/composables/useErrorHandler' -import usePage from '~/composables/navigation/usePage' import PlaylistCard from '~/components/playlists/Card.vue' import Button from '~/components/ui/Button.vue' @@ -31,7 +30,7 @@ const props = defineProps() const store = useStore() const objects = reactive([] as Playlist[]) -const page = usePage() +const page = ref(1) const nextPage = ref('') const count = ref(0)