Page past the 100-row cap in pickers and batch label sheets
This commit is contained in:
@@ -106,10 +106,13 @@ const applications = ref([])
|
||||
onMounted(async () => {
|
||||
try {
|
||||
// Load applications for topic dropdown
|
||||
const appsRes = await applicationsApi.list({ perpage: 1000, showhidden: true }) // isactive is the only filter that applies to a topic:
|
||||
// ishidden governs whether an application shows on the tiles page, which
|
||||
// says nothing about whether it can be the subject of an article.
|
||||
applications.value = appsRes.data.data || []
|
||||
// listAll, not list: the backend clamps perpage to 100 without saying so,
|
||||
// and the catalogue is past that, so a topic sorting late in the alphabet
|
||||
// was silently missing from this dropdown.
|
||||
// isactive is the only filter that applies to a topic: ishidden governs
|
||||
// whether an application shows on the tiles page, which says nothing about
|
||||
// whether it can be the subject of an article.
|
||||
applications.value = await applicationsApi.listAll({ showhidden: true })
|
||||
|
||||
// Load article if editing
|
||||
if (isEdit.value) {
|
||||
|
||||
@@ -171,10 +171,13 @@ async function loadArticles() {
|
||||
|
||||
async function loadTopics() {
|
||||
try {
|
||||
const response = await applicationsApi.list({ perpage: 1000, showhidden: true }) // isactive is the only filter that applies to a topic:
|
||||
// ishidden governs whether an application shows on the tiles page, which
|
||||
// says nothing about whether it can be the subject of an article.
|
||||
topics.value = response.data.data || []
|
||||
// listAll, not list: the backend clamps perpage to 100 without saying so,
|
||||
// and the catalogue is past that, so topics sorting late in the alphabet
|
||||
// were silently missing from this filter.
|
||||
// isactive is the only filter that applies to a topic: ishidden governs
|
||||
// whether an application shows on the tiles page, which says nothing about
|
||||
// whether it can be the subject of an article.
|
||||
topics.value = await applicationsApi.listAll({ showhidden: true })
|
||||
} catch (error) {
|
||||
console.error('Error loading topics:', error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user