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 = []; let promises = [];
for (const uid of state.currentView.users.keys()) { for (const uid of state.currentView.users.keys()) {
console.log('fetchCalendarEventsFor', uid);
promises.push( promises.push(
dispatch( dispatch(
'fetchCalendarRangeForUser', 'fetchCalendarRangeForUser',

View File

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