diff --git a/front/src/components/favorites/List.vue b/front/src/components/favorites/List.vue index 440a67ef9..9c2a17aa5 100644 --- a/front/src/components/favorites/List.vue +++ b/front/src/components/favorites/List.vue @@ -40,7 +40,6 @@ const orderingOptions: [OrderingField, keyof typeof sharedLabels.filters][] = [ ] const logger = useLogger() - const sharedLabels = useSharedLabels() const router = useRouter() diff --git a/front/src/components/library/Albums.vue b/front/src/components/library/Albums.vue index f7a9db061..fea7d6f6c 100644 --- a/front/src/components/library/Albums.vue +++ b/front/src/components/library/Albums.vue @@ -36,7 +36,7 @@ const props = withDefaults(defineProps(), { const page = ref(+props.defaultPage) type ResponseType = { count: number, results: any[] } const result = ref(null) -const query = ref('') +const query = ref(props.defaultQuery) const tags = reactive(props.defaultTags.slice()) const orderingOptions: [OrderingField, keyof typeof sharedLabels.filters][] = [ @@ -46,7 +46,6 @@ const orderingOptions: [OrderingField, keyof typeof sharedLabels.filters][] = [ ] const logger = useLogger() - const sharedLabels = useSharedLabels() const { onOrderingUpdate, orderingString, paginateBy, ordering, orderingDirection } = useOrdering(props.orderingConfigName) @@ -63,7 +62,7 @@ const updateQueryString = () => router.replace({ }) const search = () => { - page.value = 1 + page.value = props.defaultPage updateQueryString() } diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index b5a6f9481..4f4c38f5e 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -1,3 +1,121 @@ + + - -