feat(events): configurable visibility
This commit is contained in:
@@ -605,6 +605,7 @@ function updateCalendar() {
|
||||
const cellStart = cellCob;
|
||||
const cellEnd = cellCob + COBIE_UNITS.eonstrip;
|
||||
window.SPECIAL_EVENTS.forEach(ev => {
|
||||
if (ev.showMega === false) return;
|
||||
const startCob = parseCobiets(ev.start || ev.cobie);
|
||||
if (startCob === null) return;
|
||||
const endCob = ev.end ? parseCobiets(ev.end) : Number.POSITIVE_INFINITY;
|
||||
@@ -705,6 +706,7 @@ function showEonstripDetail(index, startCob) {
|
||||
const start = startCob;
|
||||
const end = startCob + COBIE_UNITS.eonstrip;
|
||||
window.SPECIAL_EVENTS.forEach(ev => {
|
||||
if (ev.showDetail === false) return;
|
||||
const startCobEv = parseCobiets(ev.start || ev.cobie);
|
||||
if (startCobEv === null) return;
|
||||
const endCobEv = ev.end ? parseCobiets(ev.end) : Number.POSITIVE_INFINITY;
|
||||
|
||||
Reference in New Issue
Block a user