-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement infinite scrolling in new and deprecated view #1766
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd personally take some of the logging off at this point, but we can have a look at JS logging levels as a whole in a separate issue instead of tackling it here.
The feature works as intended, even in a mobile width single-column window - LGTM!
@@ -67,9 +72,52 @@ function startChangesApp () { | |||
|
|||
this.changedConcepts = changesByDate | |||
this.loadingConcepts = false | |||
this.currentOffset = 200 | |||
// Add scrolling event listener back after changes are loaded | |||
this.$refs.tabChanges.$refs.list.addEventListener('scroll', this.handleScrollEvent) | |||
console.log('changes', this.changedConcepts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we don't need the logging anymore at this point
return data.json() | ||
}) | ||
.then(data => { | ||
console.log('data', data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. Maybe we don't need the logging anymore at this point.
if (data.changeList.length > 0) { | ||
this.$refs.tabChanges.$refs.list.addEventListener('scroll', this.handleScrollEvent) | ||
} | ||
console.log('changes', this.changedConcepts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. Maybe we don't need the logging anymore at this point.
I created a separate issue about logging levels - #1773 |
Reasons for creating this PR
Changes view in sidebar does not currently load more concepts as the list is scrolled in Skosmos 3. This PR adds functionality to address this.
Link to relevant issue(s), if any
Description of the changes in this PR
Addresses requirement 7 in #1735
Known problems or uncertainties in this PR
Checklist
.sr-only
class, color contrast)