fix(webui): drop the static 'Applies after restart' pill from settings headers
It read as an alert that something had changed. Restart needs show where they apply: in the review drawer for the changes being saved, and in the Restart pending banner once a saved change is waiting on a restart.
This commit is contained in:
8 files changed
+2
-15
No files matched your search
@@ -125,7 +125,6 @@ const replyModes = [
|
||||
<div>
|
||||
<PageHeader title="Channels">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
} from "@/components/ui/number-field";
|
||||
import { SegmentedControl } from "@/components/ui/segmented-control";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import {
|
||||
TagsInput,
|
||||
TagsInputInput,
|
||||
@@ -75,7 +74,6 @@ function addProfile() {
|
||||
<div>
|
||||
<PageHeader title="Container runtime">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
@@ -5,7 +5,6 @@ import { storeToRefs } from "pinia";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import { resourcesForPage, useControlPlaneStore } from "@/stores/control-plane";
|
||||
import HistoryLink from "./HistoryLink.vue";
|
||||
|
||||
@@ -31,7 +30,6 @@ const error = computed(() => store.stateFor(KIND).error);
|
||||
<div>
|
||||
<PageHeader title="Plugins">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
@@ -15,7 +15,6 @@ import {
|
||||
} from "@/components/ui/number-field";
|
||||
import { SegmentedControl } from "@/components/ui/segmented-control";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import { resourcesForPage, useControlPlaneStore } from "@/stores/control-plane";
|
||||
|
||||
const KIND = "scheduling-policy";
|
||||
@@ -65,7 +64,6 @@ const labelMissing = computed(
|
||||
<div>
|
||||
<PageHeader title="Scheduling policy">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
|
||||
@@ -7,7 +7,6 @@ import PageHeader from "@/base/PageHeader.vue";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import { resourcesForPage, useControlPlaneStore } from "@/stores/control-plane";
|
||||
import HistoryLink from "./HistoryLink.vue";
|
||||
import SecretRefField from "./SecretRefField.vue";
|
||||
@@ -63,7 +62,6 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
<div>
|
||||
<PageHeader title="Models">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-for="e in [catalogError, ...errors].filter(Boolean)" :key="String(e)" class="mb-4 text-sm text-danger" role="alert">
|
||||
|
||||
@@ -21,7 +21,6 @@ import {
|
||||
SelectValue,
|
||||
} from "@/components/ui/select";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import { Switch } from "@/components/ui/switch";
|
||||
import {
|
||||
TagsInput,
|
||||
@@ -77,7 +76,6 @@ const protectOf = (repo: Repo) => repo.protect ?? [];
|
||||
<div>
|
||||
<PageHeader title="Repositories">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">{{ catalogError || error }}</p>
|
||||
|
||||
@@ -16,7 +16,6 @@ import {
|
||||
InputGroupText,
|
||||
} from "@/components/ui/input-group";
|
||||
import { SettingRow } from "@/components/ui/setting-row";
|
||||
import { StatusPill } from "@/components/ui/status-pill";
|
||||
import { Switch } from "@/components/ui/switch";
|
||||
import { resourcesForPage, useControlPlaneStore } from "@/stores/control-plane";
|
||||
import McpServerEditor, { type McpServer } from "./McpServerEditor.vue";
|
||||
@@ -63,7 +62,6 @@ const eyebrow = "mb-1 text-[11px] font-medium tracking-[0.06em] text-fg-subtle u
|
||||
<div>
|
||||
<PageHeader title="Tools & MCP">
|
||||
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
||||
<StatusPill tone="warn">Applies after restart</StatusPill>
|
||||
</PageHeader>
|
||||
|
||||
<p v-if="catalogError || error" class="mb-4 text-sm text-danger" role="alert">
|
||||
|
||||
Reference in new issue
Block a user