fix(settings): show configuration reload failures
This commit is contained in:
2 files changed
+11
-1
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user