Merge pull request #10292 from mfo/US/elligible-on-submit

ETQ administrateur, je peux ajouter des conditions d'eligibilité auxquelles les dossiers doivent correspondre sans quoi l'usager ne peut déposer son dossier
This commit is contained in:
mfo 2024-06-11 09:46:25 +00:00 committed by GitHub
commit f6a5e932b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
84 changed files with 1772 additions and 387 deletions

View file

@ -0,0 +1,19 @@
import { ApplicationController } from './application_controller';
declare interface modal {
disclose: () => void;
}
declare interface dsfr {
modal: modal;
}
declare const window: Window &
typeof globalThis & { dsfr: (elem: HTMLElement) => dsfr };
export class InvalidIneligibiliteRulesController extends ApplicationController {
static targets = ['dialog'];
declare dialogTarget: HTMLElement;
connect() {
setTimeout(() => window.dsfr(this.dialogTarget).modal.disclose(), 100);
}
}