notify flows: refuse unknown placeholders and require the revision read on every save
This commit is contained in:
parent
7795da44f8
commit
ada364a482
7 changed files with 203 additions and 57 deletions
|
|
@ -31,7 +31,7 @@ export interface Flow {
|
|||
}
|
||||
|
||||
export interface FlowsView {
|
||||
revision: number | null;
|
||||
revision: number;
|
||||
disabled_builtins: string[];
|
||||
builtins: Flow[];
|
||||
flows: Flow[];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue