fix(front): reload content on ordering options update

This commit is contained in:
ArneBo 2025-03-29 13:05:00 +01:00
parent 6192d2c15f
commit cd6be73c4e
5 changed files with 5 additions and 5 deletions

View File

@ -105,7 +105,7 @@ const fetchData = async () => {
const store = useStore()
watch(() => store.state.moderation.lastUpdate, fetchData)
watch([page, tags, q, () => props.scope], fetchData)
watch([page, tags, q, ordering, orderingDirection, () => props.scope], fetchData)
fetchData()
const search = () => {

View File

@ -107,7 +107,7 @@ const fetchData = async () => {
const store = useStore()
watch([() => store.state.moderation.lastUpdate, excludeCompilation], fetchData)
watch([page, tags, q, () => props.scope], fetchData)
watch([page, tags, q, ordering, orderingDirection, () => props.scope], fetchData)
fetchData()
const search = () => {

View File

@ -91,7 +91,7 @@ const store = useStore()
const isAuthenticated = computed(() => store.state.auth.authenticated)
const hasFavorites = computed(() => store.state.favorites.count > 0)
watch([page, q, () => props.scope], fetchData)
watch([page, q, ordering, orderingDirection, () => props.scope], fetchData)
fetchData()
const search = () => {

View File

@ -120,7 +120,7 @@ watch(() => store.state.moderation.lastUpdate, fetchData)
const reloadWidget = () => (widgetKey.value = new Date().toLocaleString())
watch([page, tags, q], fetchData)
watch([page, tags, q, ordering, orderingDirection,], fetchData)
const search = () => {
page.value = 1

View File

@ -90,7 +90,7 @@ const fetchData = async () => {
isLoading.value = false
}
}
watch([page, q, () => props.scope], fetchData)
watch([page, q, ordering, orderingDirection, () => props.scope], fetchData)
fetchData()
const search = () => {