mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
remove external calendar
This commit is contained in:
@ -8,7 +8,6 @@ import dayGridPlugin from "@fullcalendar/daygrid";
|
||||
import iCalendarPlugin from "@fullcalendar/icalendar";
|
||||
import listPlugin from "@fullcalendar/list";
|
||||
import {
|
||||
calendarCalendarExternal,
|
||||
calendarCalendarInternal,
|
||||
calendarCalendarUnpublished,
|
||||
newsDeleteNews,
|
||||
@ -151,11 +150,6 @@ export class IcsCalendar extends inheritHtmlElement("div") {
|
||||
format: "ics",
|
||||
className: "internal",
|
||||
},
|
||||
{
|
||||
url: `${await makeUrl(calendarCalendarExternal)}${cacheInvalidate}`,
|
||||
format: "ics",
|
||||
className: "external",
|
||||
},
|
||||
{
|
||||
url: `${await makeUrl(calendarCalendarUnpublished)}${cacheInvalidate}`,
|
||||
format: "ics",
|
||||
@ -224,9 +218,6 @@ export class IcsCalendar extends inheritHtmlElement("div") {
|
||||
};
|
||||
|
||||
const makePopupTools = (event: EventImpl) => {
|
||||
if (event.source.internalEventSource.ui.classNames.includes("external")) {
|
||||
return null;
|
||||
}
|
||||
if (!(this.canDelete || this.canModerate)) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user