Tweaks
This commit is contained in:
parent
978d8626b7
commit
950d690020
2 changed files with 3 additions and 6 deletions
|
@ -1,5 +1,4 @@
|
|||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { writable } from 'svelte/store';
|
||||
import FullCalendar from 'svelte-fullcalendar';
|
||||
import { Circle2 } from 'svelte-loading-spinners';
|
||||
|
@ -22,8 +21,6 @@
|
|||
import bootstrap5Plugin from '@fullcalendar/bootstrap5';
|
||||
import { Tooltip } from 'bootstrap';
|
||||
|
||||
import { createPopper } from '@popperjs/core';
|
||||
|
||||
import ENSLocations from './static-ens-locations.json';
|
||||
|
||||
const event = writable(null);
|
||||
|
@ -158,7 +155,7 @@
|
|||
const updateEvents = debounce(calendars => {
|
||||
options.update(opts => ({
|
||||
...opts,
|
||||
eventSources: selectedCalendars.map(mkSource).filter(x => !!x)
|
||||
eventSources: calendars.map(mkSource).filter(x => !!x)
|
||||
}));
|
||||
}, 300);
|
||||
|
||||
|
|
|
@ -240,9 +240,9 @@ function findLocationId(location) {
|
|||
'Salle Jean Ibanes (Jourdan, R1-07)': 'Salle Jean Ibanes (R1-07)',
|
||||
'Salle Madeleine Rebérioux (Jourdan, R2-02)': 'Salle Madeleine Rebérioux (R2-02)',
|
||||
'Salle Marcel Roncayolo (Jourdan, R2-05)': 'Salle Marcel Roncayolo (R2-05)'
|
||||
};
|
||||
}
|
||||
|
||||
const correctedLocation = adhocMap[location] || location;
|
||||
const correctedLocation = adhocMap[location] || location
|
||||
|
||||
const result = Object.entries(STATIC_LOCATIONS).find(([building, rooms]) =>
|
||||
rooms.includes(correctedLocation)
|
||||
|
|
Loading…
Reference in a new issue