Fix display of toasts after form submission

This commit is contained in:
Jeremy Stretch 2024-03-25 15:12:41 -04:00
parent 1af5799f2d
commit 4c92397d71
4 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -3,9 +3,10 @@ import { initClipboard } from './clipboard'
import { initSelects } from './select'; import { initSelects } from './select';
import { initObjectSelector } from './objectSelector'; import { initObjectSelector } from './objectSelector';
import { initBootstrap } from './bs'; import { initBootstrap } from './bs';
import { initMessages } from './messages';
function initDepedencies(): void { function initDepedencies(): void {
for (const init of [initButtons, initClipboard, initSelects, initObjectSelector, initBootstrap]) { for (const init of [initButtons, initClipboard, initSelects, initObjectSelector, initBootstrap, initMessages]) {
init(); init();
} }
} }

View File

@ -1,6 +1,6 @@
{% load helpers %} {% load helpers %}
<div id="django-messages" class="toast-container position-fixed bottom-0 end-0 p-3"> <div id="django-messages" class="toast-container position-fixed bottom-0 end-0 p-3" hx-swap-oob="true">
{# Non-Field Form Errors #} {# Non-Field Form Errors #}
{% if form and form.non_field_errors %} {% if form and form.non_field_errors %}