74986a8b3a
Previously, we decide when to display "Show More" based on the current fetched reply count vs. total replies in Commentron. It was already troublesome as `comment.List` and `comment.replies` give different values (one includes blocked content, while another does not). Now, we are further filtering the list with Commentron blocklists (personal, admin, moderator), so it is not feasible to run the logic based on reply count. ## Solution - Keep track of number of remaining pages instead and use that to determine when to display "Show More". - While it doesn't solve the "Show N replies" mismatch (YT has this problem too), it prevents the button from lingering. - In the event that all replies are blocked, just show an empty space (same as YT). I didn't like the previous version that cluttered the space with "comment(s) blocked". |
||
---|---|---|
.. | ||
npm | ||
18nj.js | ||
bluebird.js | ||
classnames.js | ||
Comment.js | ||
content.js | ||
electron.js | ||
formik.js | ||
homepage.js | ||
livestream.js | ||
location.js | ||
notification.js | ||
publish.js | ||
qrcode.react.js | ||
react-markdown.js | ||
react-modal.js | ||
react-paginate.js | ||
react-simplemde-editor.js | ||
react-transition-group.js | ||
redux.js | ||
reportContent.js | ||
reselect.js | ||
reward.js | ||
search.js | ||
shapeshift.io.js | ||
subscription.js | ||
user.js | ||
web-file.js | ||
web.js |