Files
gohoarder/frontend/src/components/NotFound.vue
T
lukaszraczylo 81e3f9c74f fix(frontend): show load failures as errors and add a not-found route
A failed request left the store error set while the view kept its own
empty-list branch, so the page said nothing was cached. Every view now
checks loading, then error, then content, and the retry button refetches.
Unknown paths render a NotFound page with a link to the dashboard. The brand
shares the sidebar left edge, and a stopped socket reads Live updates paused
in a neutral tone; the client already retries with backoff.
2026-11-23 02:29:14 +00:00

27 lines
690 B
Vue

<template>
<div class="flex flex-col gap-6">
<PageHeader title="Page not found" />
<EmptyState
title-as="h2"
size="lg"
:icon="faMagnifyingGlass"
title="No page at this address"
:description="`Nothing lives at ${route.path}.`"
>
<template #action>
<Button as-child>
<RouterLink to="/">Back to the dashboard</RouterLink>
</Button>
</template>
</EmptyState>
</div>
</template>
<script setup lang="ts">
import { RouterLink, useRoute } from 'vue-router'
import { Button, EmptyState, PageHeader } from '@perfect-design/ui'
import { faMagnifyingGlass } from '@/lib/icons'
const route = useRoute()
</script>