fix(admin): confirm before role change and application-group delete (BUNYIP-109) #149
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-109-admin-confirm"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Three destructive/privileged admin actions were missing the
onsubmit="return confirm(...)"guard that every sibling action inbunyip-web/src/handlers/admin.rsalready has.This adds a confirm dialog to each:
/admin/users/{}/role): "Change this user role? Admins have full platform access."/admin/application-groups/{}/delete): "Delete this application group? This cannot be undone."The maud attribute style matches the existing confirmed forms (suspend/delete-user, lifetime grant/revoke, reset-password).
Verification
cargo fmt --all --checkandcargo clippy -p bunyip-web --all-targets -- -D warningsboth pass in the pinned rust-builder-glibc image. Template attribute change only, so no new tests.#BUNYIP-109