diff --git a/assets/controllers/modal_controller.js b/assets/controllers/modal_controller.js new file mode 100644 index 0000000..cf64a54 --- /dev/null +++ b/assets/controllers/modal_controller.js @@ -0,0 +1,7 @@ +import { Controller } from '@hotwired/stimulus' + +export default class extends Controller { + close() { + this.element.remove() + } +} diff --git a/templates/_partials/_alert.html.twig b/templates/_partials/_alert.html.twig index 2ab7b04..cd982be 100644 --- a/templates/_partials/_alert.html.twig +++ b/templates/_partials/_alert.html.twig @@ -1,4 +1,7 @@ -