Implemented session and account lockout management

Enabled account sync control and session expiration management
Applied some fixes to the govername page and project page
This commit is contained in:
2026-09-18 10:19:24 +02:00
parent 41bf9b63bf
commit ec777fabf8
24 changed files with 3888 additions and 500 deletions
@@ -22,13 +22,19 @@ export const Modal: React.FC<ModalProps> = ({
const handleKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Escape') onClose();
};
const handleDismissSubordinates = () => {
onClose();
};
if (isOpen) {
document.body.style.overflow = 'hidden';
window.addEventListener('keydown', handleKeyDown);
window.addEventListener('pfm:dismiss-subordinates', handleDismissSubordinates);
}
return () => {
document.body.style.overflow = 'unset';
window.removeEventListener('keydown', handleKeyDown);
window.removeEventListener('pfm:dismiss-subordinates', handleDismissSubordinates);
};
}, [isOpen, onClose]);