Connect calendar moderation with outside moderation

This commit is contained in:
2025-02-25 15:35:01 +01:00
parent f9c36c8f99
commit 2e71275f5b
2 changed files with 36 additions and 0 deletions

View File

@ -96,6 +96,14 @@ export class IcsCalendar extends inheritHtmlElement("div") {
news_id: id,
},
});
this.dispatchEvent(
new CustomEvent("calendar-moderate", {
bubbles: true,
detail: {
id: id,
},
}),
);
await this.refreshEvents();
}
@ -106,6 +114,14 @@ export class IcsCalendar extends inheritHtmlElement("div") {
news_id: id,
},
});
this.dispatchEvent(
new CustomEvent("calendar-remove", {
bubbles: true,
detail: {
id: id,
},
}),
);
await this.refreshEvents();
}
@ -116,6 +132,14 @@ export class IcsCalendar extends inheritHtmlElement("div") {
news_id: id,
},
});
this.dispatchEvent(
new CustomEvent("calendar-delete", {
bubbles: true,
detail: {
id: id,
},
}),
);
await this.refreshEvents();
}