You've already forked AstralRinth
forked from didirus/AstralRinth
fix version filtering wrong page (#1206)
This commit is contained in:
@@ -96,6 +96,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
const emit = defineEmits(['switch-page'])
|
||||||
|
|
||||||
const data = useNuxtApp()
|
const data = useNuxtApp()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@@ -140,6 +141,7 @@ async function updateQuery() {
|
|||||||
s: includeSnapshots.value ? true : undefined,
|
s: includeSnapshots.value ? true : undefined,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
emit('switch-page', 1)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<DropArea :accept="acceptFileFromProjectType(project.project_type)" @change="handleFiles" />
|
<DropArea :accept="acceptFileFromProjectType(project.project_type)" @change="handleFiles" />
|
||||||
</div>
|
</div>
|
||||||
<VersionFilterControl :versions="props.versions" />
|
<VersionFilterControl :versions="props.versions" @switch-page="switchPage" />
|
||||||
<Pagination
|
<Pagination
|
||||||
:page="currentPage"
|
:page="currentPage"
|
||||||
:count="Math.ceil(filteredVersions.length / 20)"
|
:count="Math.ceil(filteredVersions.length / 20)"
|
||||||
|
|||||||
Reference in New Issue
Block a user