mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-25 09:03:48 +00:00
display of calendar form
This commit is contained in:
@@ -62,8 +62,6 @@ export default {
|
||||
const userData = state.usersData.get(userId);
|
||||
|
||||
if (kinds.ranges && userData.calendarRanges.length > 0) {
|
||||
console.log('first range', userData.calendarRanges[0]);
|
||||
console.log('state activity', state.activity);
|
||||
const s = {
|
||||
id: `ranges_${userId}`,
|
||||
events: userData.calendarRanges.filter(r => state.activity.calendarRange === null || r.calendarRangeId !== state.activity.calendarRange.calendarRangeId),
|
||||
@@ -92,7 +90,6 @@ export default {
|
||||
return sources;
|
||||
},
|
||||
getInitialDate(state) {
|
||||
console.log('initialDate', state.activity.startDate);
|
||||
return state.activity.startDate;
|
||||
},
|
||||
/**
|
||||
|
@@ -47,8 +47,6 @@ const store = createStore({
|
||||
actions,
|
||||
});
|
||||
|
||||
console.log('calendar event', store.state.activity);
|
||||
|
||||
whoami().then(me => {
|
||||
store.commit('setWhoAmiI', me);
|
||||
});
|
||||
@@ -61,4 +59,6 @@ for (let u of store.state.activity.users) {
|
||||
store.commit('showUserOnCalendar', {ranges: false, remotes: false, user: u});
|
||||
}
|
||||
|
||||
console.log('store', store);
|
||||
|
||||
export default store;
|
||||
|
@@ -53,7 +53,7 @@ const createUserData = (user, colorIndex) => {
|
||||
const calendarRangeToFullCalendarEvent = (entity) => {
|
||||
return {
|
||||
id: `range_${entity.id}`,
|
||||
title: "",
|
||||
title: "(" + entity.user.text + ")",
|
||||
start: entity.startDate.datetime8601,
|
||||
end: entity.endDate.datetime8601,
|
||||
allDay: false,
|
||||
|
Reference in New Issue
Block a user