Page past the 100-row cap in pickers and batch label sheets
This commit is contained in:
@@ -145,8 +145,9 @@ const sheetPages = computed(() => {
|
||||
onMounted(async () => {
|
||||
labelStyle.value = (await getSetting('usb_label_style', 'barcode')) === 'qr' ? 'qr' : 'barcode'
|
||||
try {
|
||||
const response = await usbApi.list({ perpage: 500 })
|
||||
devices.value = response.data.data || []
|
||||
// listAll: perpage is clamped to 100, and a batch sheet must cover every
|
||||
// device, not the first page of them.
|
||||
devices.value = await usbApi.listAll()
|
||||
} catch (error) {
|
||||
console.error('Error loading USB devices:', error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user