remove log messages

This commit is contained in:
Julien Fastré 2022-05-23 15:07:58 +02:00
parent f825c69ce5
commit 38c7c8de60
2 changed files with 0 additions and 19 deletions

View File

@ -22,7 +22,6 @@ export default {
let promises = [];
for (const uid of state.currentView.users.keys()) {
console.log('fetchCalendarEventsFor', uid);
promises.push(
dispatch(
'fetchCalendarRangeForUser',

View File

@ -29,23 +29,17 @@ export default {
* @returns {*[]}
*/
getEventSources(state) {
console.log('getEventSources');
let sources = [];
for (const [userId, kinds] of state.currentView.users.entries()) {
console.log('loop', userId, kinds);
if (!state.usersData.has(userId)) {
console.log('try to get events on a user which not exists', userId);
continue;
}
console.log('addingUser', userId);
const userData = state.usersData.get(userId);
console.log('userData', userData);
if (kinds.ranges && userData.calendarRanges.length > 0) {
console.log('adding ranges for user', userId);
const s = {
id: `ranges_${userId}`,
events: userData.calendarRanges,
@ -55,15 +49,10 @@ export default {
editable: false,
};
console.log('range source', s);
sources.push(s);
} else {
console.log('not adding ranges for user', userId);
}
if (kinds.remotes && userData.remotes.length > 0) {
console.log('adding remotes for user', userId);
const s = {
'id': `remote_${userId}`,
events: userData.remotes,
@ -72,15 +61,10 @@ export default {
editable: false,
};
console.log('remote source', s);
sources.push(s);
} else {
console.log('not adding remotes for user', userId);
}
}
console.log('eventSources', sources);
return sources;
},
/**
@ -156,13 +140,11 @@ export default {
* @returns boolean
*/
isRangeShownOnCalendarForUser: (state) => (user) => {
console.log(user);
const k = state.currentView.users.get(user.id);
if (typeof k === 'undefined') {
console.error('try to determinate if calendar range is shown and user is not in currentView');
return false;
}
console.log('k', k);
return k.ranges;
},