mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 08:33:49 +00:00
add feature add and delete range
This commit is contained in:
@@ -2,6 +2,7 @@ import {COLORS} from '../const';
|
||||
import {ISOToDatetime} from 'ChillMainAssets/chill/js/date';
|
||||
import {DateTime, User} from 'ChillMainAssets/types';
|
||||
import {CalendarRange, CalendarRemote} from 'ChillCalendarAssets/types';
|
||||
import type {EventInputCalendarRange} from 'ChillCalendarAssets/types';
|
||||
import {EventInput} from '@fullcalendar/vue3';
|
||||
|
||||
export interface UserData {
|
||||
@@ -63,7 +64,7 @@ export const createUserData = (user: User, colorIndex: number): UserData => {
|
||||
}
|
||||
|
||||
// TODO move this function to a more global namespace, as it is in use in MyCalendarRange app
|
||||
export const calendarRangeToFullCalendarEvent = (entity: CalendarRange): EventInput & {id: string} => {
|
||||
export const calendarRangeToFullCalendarEvent = (entity: CalendarRange): EventInputCalendarRange => {
|
||||
return {
|
||||
id: `range_${entity.id}`,
|
||||
title: "(" + entity.user.text + ")",
|
||||
|
Reference in New Issue
Block a user