mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Connect calendar moderation with outside moderation
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user