Closed Dave0921 closed 6 years ago
I don't think we need to mock this data anymore, you can DI the community service and use it to fetch the top communities now. You can also use the UserService to check if they are logged in, and if so, display their favourites.
Kk I'll use the community service.
I'll add a NSFW tag beside the communities that are NSFW (maybe through a chip). I assume the sidebar text will appear somewhere on the right of the actual community page.
I've implemented the community API service to get a list of top communities on loading the site. I'll work on added a NSFW tag in another PR.
Instead of having the details on a community in another side bar, maybe have it so that it's a header and creates a popup.
Okay sure, that sounds good. Are you working on the Community page in one of the branches?
This is unrelated to this bug, but is there a way to refresh/change the page on login/logout so that the user's favourited communities appear/disappear?
@Dave0921 Once https://github.com/MemePlace/Frontend/pull/62 merges, yes
You may want to modify this with #68 merged
I have a strange bug that I can't seem to figure out how to fix. When I toggle the Favourite/Unfavourite icon on the Browse Community view, the changes are reflected in the Favourite communities list. However, the Unfavourited/Top 10 communities list doesn't seem to change. Is there a way for the Unfavourited communities list to detect changes from the star icon in the Browse Community view?
@Dave0921 What's the status on this?
This PR is a duplicate of #79
Modified the side navigation bar list so that it removes "Favourited" communities from the top community list. Also, added a favouriteCount property to the community object to keep track of the number of favourites per community (for sorting purposes).