css: fix prettier and hidden slot minor
This commit is contained in:
@@ -224,3 +224,6 @@ tbody > tr.fc-scrollgrid-section:first-of-type .fc-scroller
|
|||||||
|
|
||||||
.navigation-controls
|
.navigation-controls
|
||||||
margin-right 40px
|
margin-right 40px
|
||||||
|
|
||||||
|
.fc .fc-timegrid-slot-minor
|
||||||
|
border-top-style: none
|
||||||
|
|||||||
@@ -12,7 +12,10 @@ import {
|
|||||||
import { getOpenPaasUser, getUserDetails } from "../User/userAPI";
|
import { getOpenPaasUser, getUserDetails } from "../User/userAPI";
|
||||||
import { parseCalendarEvent } from "../Events/eventUtils";
|
import { parseCalendarEvent } from "../Events/eventUtils";
|
||||||
import { deleteEvent, getEvent, moveEvent, putEvent } from "../Events/EventApi";
|
import { deleteEvent, getEvent, moveEvent, putEvent } from "../Events/EventApi";
|
||||||
import { formatDateToYYYYMMDDTHHMMSS, computeWeekRange } from "../../utils/dateUtils";
|
import {
|
||||||
|
formatDateToYYYYMMDDTHHMMSS,
|
||||||
|
computeWeekRange,
|
||||||
|
} from "../../utils/dateUtils";
|
||||||
import { User } from "../../components/Attendees/PeopleSearch";
|
import { User } from "../../components/Attendees/PeopleSearch";
|
||||||
|
|
||||||
export const getCalendarsListAsync = createAsyncThunk<
|
export const getCalendarsListAsync = createAsyncThunk<
|
||||||
|
|||||||
@@ -23,7 +23,13 @@ import {
|
|||||||
ContentCopy as CopyIcon,
|
ContentCopy as CopyIcon,
|
||||||
Close as DeleteIcon,
|
Close as DeleteIcon,
|
||||||
} from "@mui/icons-material";
|
} from "@mui/icons-material";
|
||||||
import React, { useEffect, useState, useMemo, useCallback, useRef } from "react";
|
import React, {
|
||||||
|
useEffect,
|
||||||
|
useState,
|
||||||
|
useMemo,
|
||||||
|
useCallback,
|
||||||
|
useRef,
|
||||||
|
} from "react";
|
||||||
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
import { useAppDispatch, useAppSelector } from "../../app/hooks";
|
||||||
import AttendeeSelector from "../../components/Attendees/AttendeeSearch";
|
import AttendeeSelector from "../../components/Attendees/AttendeeSearch";
|
||||||
import { ResponsiveDialog } from "../../components/Dialog";
|
import { ResponsiveDialog } from "../../components/Dialog";
|
||||||
@@ -129,7 +135,6 @@ function EventPopover({
|
|||||||
selectPersonnalCalendars
|
selectPersonnalCalendars
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Helper function to resolve timezone aliases
|
// Helper function to resolve timezone aliases
|
||||||
const resolveTimezone = (tzName: string): string => {
|
const resolveTimezone = (tzName: string): string => {
|
||||||
if (TIMEZONES.zones[tzName]) {
|
if (TIMEZONES.zones[tzName]) {
|
||||||
@@ -259,7 +264,9 @@ function EventPopover({
|
|||||||
setEnd(event.end ? event.end : "");
|
setEnd(event.end ? event.end : "");
|
||||||
setCalendarid(
|
setCalendarid(
|
||||||
event.calId
|
event.calId
|
||||||
? userPersonnalCalendarsRef.current.findIndex((e) => e.id === event.calId)
|
? userPersonnalCalendarsRef.current.findIndex(
|
||||||
|
(e) => e.id === event.calId
|
||||||
|
)
|
||||||
: 0
|
: 0
|
||||||
);
|
);
|
||||||
setAllDay(event.allday ?? false);
|
setAllDay(event.allday ?? false);
|
||||||
@@ -267,13 +274,19 @@ function EventPopover({
|
|||||||
setShowRepeat(event.repetition?.freq ? true : false);
|
setShowRepeat(event.repetition?.freq ? true : false);
|
||||||
setAttendees(
|
setAttendees(
|
||||||
event.attendee
|
event.attendee
|
||||||
? event.attendee.filter((a) => a.cal_address !== organizer?.cal_address)
|
? event.attendee.filter(
|
||||||
|
(a) => a.cal_address !== organizer?.cal_address
|
||||||
|
)
|
||||||
: []
|
: []
|
||||||
);
|
);
|
||||||
setAlarm(event.alarm?.trigger ?? "");
|
setAlarm(event.alarm?.trigger ?? "");
|
||||||
setEventClass(event.class ?? "PUBLIC");
|
setEventClass(event.class ?? "PUBLIC");
|
||||||
setBusy(event.transp ?? "OPAQUE");
|
setBusy(event.transp ?? "OPAQUE");
|
||||||
setTimezone(event.timezone ? resolveTimezone(event.timezone) : timezoneList.browserTz);
|
setTimezone(
|
||||||
|
event.timezone
|
||||||
|
? resolveTimezone(event.timezone)
|
||||||
|
: timezoneList.browserTz
|
||||||
|
);
|
||||||
setHasVideoConference(event.x_openpass_videoconference ? true : false);
|
setHasVideoConference(event.x_openpass_videoconference ? true : false);
|
||||||
setMeetingLink(event.x_openpass_videoconference || null);
|
setMeetingLink(event.x_openpass_videoconference || null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user