| 1/1 | A dead invite's refusal in its panel | +3 | -2 | ✓ |
No comments yet: forge comment 22 adds one.
1/1 A dead invite's refusal in its panel
With the steps in panels, a dead invite link left the "join forge" head strip with nothing under it and the refusal below the panel, which read as a broken box. The refusal now takes the form's place in the panel.
| M | site/ | 5 | +++-- |
@@ -129,8 +129,9 @@ interface WebAuthn {
129129 join.disabled = false;130130 key.focus();131131 }, (e: Error) => {132- // A dead link: nothing to fill in.133- document.getElementById('invite-form')!.hidden = true;132+ // A dead link: nothing to fill in, and the refusal in its panel.133+ const form = document.getElementById('invite-form')!;134+ if (status) form.replaceChildren(status);134135 say(e.message, true);135136 });136137 join.addEventListener('click', async () => {