fixed some UX inconsistencies in gatekeeper
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}());
|
||||
|
||||
Reference in New Issue
Block a user