Watch
0
0
Fork
You've already forked hyperhive
0

notify flows: refuse unknown placeholders and require the revision read on every save

This commit is contained in:
atlas 2026-10-24 04:38:17 +02:00 • committed by mara
commit ada364a482
7 changed files with 203 additions and 57 deletions

View file

@ -31,7 +31,7 @@ export interface Flow {
}
export interface FlowsView {
revision: number | null;
revision: number;
disabled_builtins: string[];
builtins: Flow[];
flows: Flow[];

View file

@ -58,7 +58,7 @@ export function NotificationsPage() {
const [actionError, setActionError] = useState<ProblemDetails | null>(null);
// Switch one built-in on or off: the whole document goes back with the
// revision this page read, so a change made elsewhere since is refused
// revision this page read (0 for none), so a change made elsewhere since is refused
// rather than overwritten.
async function setBuiltin(id: string, enabled: boolean) {
if (!view) return;