fix(settings): show configuration reload failures

This commit is contained in:
sam committed 2026-10-09 09:57:57 +11:00
1 parent dd203997a8
commit 018f549055
2 files changed
+11 -1

No files matched your search

+10
View File
@@ -1,4 +1,10 @@
<script setup lang="ts">
import { onMounted, onUnmounted } from "vue";
import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";
import { config, loadConfig } from "./state";
let timer: ReturnType<typeof setInterval>;
onMounted(() => { void loadConfig(); timer = setInterval(() => void loadConfig(), 15_000); });
onUnmounted(() => clearInterval(timer));
import PageHeader from "@/base/PageHeader.vue";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import HealthStatusCard from "./HealthStatusCard.vue";
@@ -10,6 +16,10 @@ import VersionsCard from "./VersionsCard.vue";
<template>
<div>
<PageHeader title="Status" />
<Alert v-if="config?.reload?.last_error" variant="destructive" class="mb-4">
<AlertTitle>Configuration reload failed</AlertTitle>
<AlertDescription>{{ config.reload.last_error }}</AlertDescription>
</Alert>
<Tabs default-value="services" class="space-y-4">
<TabsList>