Skip to content
Snippets Groups Projects
Commit af5d4954 authored by permcu's avatar permcu
Browse files

Reduce debug prints

parent 97a58a34
No related branches found
No related tags found
2 merge requests!355Implement infinite scrolling and by date navigation for coursebook,!350Resolve "Add simple course book list"
Pipeline #181202 failed
...@@ -141,7 +141,6 @@ export default { ...@@ -141,7 +141,6 @@ export default {
// Assertion: Should only fire on page load or selection change. // Assertion: Should only fire on page load or selection change.
// Resets date range. // Resets date range.
gqlQueryArgs() { gqlQueryArgs() {
console.log('computing gqlQueryArgs');
return { return {
own: this.filterType === "all" ? false : true, own: this.filterType === "all" ? false : true,
objId: this.objId ? Number(this.objId) : undefined, objId: this.objId ? Number(this.objId) : undefined,
...@@ -238,8 +237,7 @@ export default { ...@@ -238,8 +237,7 @@ export default {
}, },
// Transform the previous result with new data // Transform the previous result with new data
updateQuery: (previousResult, { fetchMoreResult }) => { updateQuery: (previousResult, { fetchMoreResult }) => {
console.log('previousResult', previousResult); console.log('Received more');
console.log('fetchMoreResult', fetchMoreResult);
then(); then();
return { items: previousResult.items.concat(fetchMoreResult.items) }; return { items: previousResult.items.concat(fetchMoreResult.items) };
} }
...@@ -257,11 +255,8 @@ export default { ...@@ -257,11 +255,8 @@ export default {
} }
}, },
fixScrollPos(height, top) { fixScrollPos(height, top) {
console.log('fix @', top, document.documentElement.scrollTop, height, document.documentElement.scrollHeight);
this.$nextTick(() => { this.$nextTick(() => {
console.log('fix @', top, document.documentElement.scrollTop, height, document.documentElement.scrollHeight);
if (height < document.documentElement.scrollHeight) { if (height < document.documentElement.scrollHeight) {
console.log('fixingTop');
document.documentElement.scrollTop = document.documentElement.scrollHeight - height + top; document.documentElement.scrollTop = document.documentElement.scrollHeight - height + top;
this.ready = true; this.ready = true;
} else { } else {
...@@ -277,7 +272,7 @@ export default { ...@@ -277,7 +272,7 @@ export default {
if (entry.isIntersecting) { if (entry.isIntersecting) {
if ((entry.boundingClientRect.top <= this.topMargin) || first) { if ((entry.boundingClientRect.top <= this.topMargin) || first) {
console.log('@', date.toISODate()); console.log('@ ', date.toISODate());
this.setDate(date.toISODate()); this.setDate(date.toISODate());
} }
...@@ -333,7 +328,6 @@ export default { ...@@ -333,7 +328,6 @@ export default {
this.setDate(date); this.setDate(date);
present.focus("smooth"); present.focus("smooth");
} else if (!this.findPrev(DateTime.fromISO(date)) || !this.findNext(DateTime.fromISO(date))) { } else if (!this.findPrev(DateTime.fromISO(date)) || !this.findNext(DateTime.fromISO(date))) {
console.log('resetting from cal to ', date);
this.resetDate(date); this.resetDate(date);
} }
}, },
......
...@@ -60,7 +60,6 @@ export default { ...@@ -60,7 +60,6 @@ export default {
}, },
}, },
mounted() { mounted() {
console.log('mounted ', this.date.toISODate(), this.focusOnMount);
if (this.focusOnMount) { if (this.focusOnMount) {
this.$nextTick(this.focus("instant")); this.$nextTick(this.focus("instant"));
this.$emit('init'); this.$emit('init');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment