fix(06.2): WR-03 WR-04 fix pagination off-by-one and surface daily exports load errors
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
<span class="text-sm text-gray-500">Page {{ page }}</span>
|
||||
<button
|
||||
@click="nextPage"
|
||||
:disabled="entries.length < perPage"
|
||||
:disabled="page * perPage >= total"
|
||||
class="text-sm text-gray-600 hover:text-gray-900 disabled:opacity-40 disabled:cursor-not-allowed px-3 py-1.5 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors"
|
||||
>
|
||||
Next
|
||||
@@ -263,7 +263,7 @@ function prevPage() {
|
||||
}
|
||||
|
||||
function nextPage() {
|
||||
if (entries.value.length >= perPage) {
|
||||
if (page.value * perPage < total.value) {
|
||||
page.value++
|
||||
fetchLog()
|
||||
}
|
||||
@@ -294,6 +294,7 @@ async function loadDailyExports() {
|
||||
dailyExports.value = data.items ?? []
|
||||
} catch (e) {
|
||||
dailyExports.value = []
|
||||
exportsError.value = 'Failed to load daily exports. Please try again.'
|
||||
} finally {
|
||||
loadingExports.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user