Add partial turbo event

This commit is contained in:
Benjamin DALSASS
2026-01-20 14:39:40 +01:00
parent 096dfd7dec
commit c85e0373b1
5 changed files with 25 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ class TurboStreamEvent extends HTMLElement {
this.style.display = 'none';
const event = new CustomEvent("itop:TurboStreamEvent", {
const event = new CustomEvent(`itop:TurboStreamEvent:${this.dataset.type}`, {
detail: {
id: this.getAttribute('id'),
form_id: this.dataset.formId,