Files
traefik-llmgateway/webui/src/components/PageLoadError.vue
T
lukaszraczylo fcfb298077 fix(admin-ui): stale-data notice, request timeout and dedupe, hash and format edge cases
Show a persistent notice when a refresh fails while old data is on screen.
Add retry to the Targets and Access Matrix error states.
Give tables names, skeletons a status role and CSV export a live region.
Abort admin requests after 15 seconds and share concurrent identical GETs.
Show a reload prompt when a lazy page chunk fails to load.
Ignore prototype keys in the location hash.
Stop formatContextWindow emitting 1000k, round latency before the 1s cutoff,
and treat NaN as not enough data in the month projection.
Regenerate admin_assets_gen.go.
2026-11-08 01:59:34 +00:00

22 lines
891 B
Vue

<script setup lang="ts">
import { faArrowRotateRight, faTriangleExclamation } from '@fortawesome/free-solid-svg-icons'
import { Button } from '@/components/ui/button'
function reload(): void {
window.location.reload()
}
</script>
<template>
<div role="alert" class="flex flex-col items-center gap-2 px-4 py-16 text-center">
<FontAwesomeIcon :icon="faTriangleExclamation" class="size-6 text-destructive" aria-hidden="true" />
<p class="text-sm font-medium text-destructive">This page failed to load.</p>
<p class="max-w-md text-sm text-muted-foreground">The gateway may have been updated since this tab opened. Reload to fetch the current version.</p>
<Button type="button" variant="outline" size="sm" class="mt-1" @click="reload">
<FontAwesomeIcon :icon="faArrowRotateRight" class="size-3.5" aria-hidden="true" />
Reload
</Button>
</div>
</template>