Skip to content

Conversation

AngeloStavrow
Copy link
Collaborator

@AngeloStavrow AngeloStavrow commented Aug 25, 2020

Closes #12.

This PR adds an API call (and result handler) to the WriteFreelyModel to fetch user collections from the server, and calls it on login. The handler updates the CollectionListModel's userCollections property, which updates the CollectionListView.

A clearUserCollection() method is also added to the CollectionListModel, to purge the fetched collections when the user logs out.

@AngeloStavrow AngeloStavrow added this to the 1.0.0-beta milestone Aug 25, 2020
@AngeloStavrow AngeloStavrow requested a review from thebaer August 25, 2020 15:53
@AngeloStavrow AngeloStavrow self-assigned this Aug 25, 2020
@AngeloStavrow AngeloStavrow merged commit 0c8a870 into main Aug 27, 2020
@AngeloStavrow AngeloStavrow deleted the fetch-collections-on-login branch August 27, 2020 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

On login, the user's Collections should be retrieved from the server
2 participants