Skip to content

Commit

Permalink
Fix broken risk acceptance acceptation/revokation/rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurswag committed Oct 9, 2024
1 parent 6550815 commit 6e7f15e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions frontend/src/lib/components/Modals/ConfirmModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
import SuperForm from '$lib/components/Forms/Form.svelte';
// Can we use the HiddenInput component instead of setting these values manually ?
_form.data.id = id;
_form.data.urlmodel = URLModel;
const { form } = superForm(_form, {
dataType: 'json',
id: `confirm-modal-form-${crypto.randomUUID()}`
Expand Down Expand Up @@ -53,8 +57,9 @@
<!-- prettier-ignore -->
<footer class="modal-footer {parent.regionFooter}">
<button type="button" class="btn {parent.buttonNeutral}" on:click={parent.onClose}>{m.cancel()}</button>
<input type="hidden" name="urlmodel" value={URLModel} />
<input type="hidden" name="id" value={id} />
<!-- Can we use the HiddenInput component instead ?-->
<!-- <input type="hidden" name="urlmodel" value={URLModel} /> -->
<!-- <input type="hidden" name="id" value={id} /> -->
<button class="btn variant-filled-error" type="submit" on:click={parent.onConfirm}>{m.submit()}</button>
</footer>
</SuperForm>
Expand Down

0 comments on commit 6e7f15e

Please sign in to comment.