fixed some UX inconsistencies in gatekeeper
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Disco DeDisco
2026-03-16 01:04:52 -04:00
parent fa46fc18d7
commit 462155f07b
5 changed files with 20 additions and 27 deletions

View File

@@ -7,7 +7,6 @@
if (dialog.hasAttribute('open')) {
dialog.removeAttribute('open');
btn.classList.remove('active');
clearSelection();
return;
}
fetch(btn.dataset.kitUrl, {
@@ -30,7 +29,6 @@
if (e.key === 'Escape' && dialog.hasAttribute('open')) {
dialog.removeAttribute('open');
btn.classList.remove('active');
clearSelection();
}
});
@@ -42,7 +40,6 @@
if (e.target.closest('button.token-rails')) return;
dialog.removeAttribute('open');
btn.classList.remove('active');
clearSelection();
});
// Inject token_id before token-rails form submits
@@ -90,9 +87,5 @@
});
}
function clearSelection() {
window._kitTokenId = null;
var slot = document.querySelector('.token-slot');
if (slot) slot.classList.remove('ready');
}
}());