mirror of
https://github.com/feeddeck/feeddeck.git
synced 2026-03-09 15:12:10 -05:00
[PR #45] [MERGED] [core] Fix ItemsRepository Status #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/feeddeck/feeddeck/pull/45
Author: @ricoberger
Created: 10/22/2023
Status: ✅ Merged
Merged: 10/22/2023
Merged by: @ricoberger
Base:
main← Head:core-fix-items-repository-status📝 Commits (1)
fe5c0a2[core] Fix ItemsRepository Status📊 Changes
1 file changed (+23 additions, -10 deletions)
View changed files
📝
app/lib/repositories/items_repository.dart(+23 -10)📄 Description
This commit fixes the status of an ItemsRepository when the repository
is initalized from the ItemsRepositoryStore instead of the "_getItems"
function.
After the repository was initialized from the ItemsRepositoryStore we
always set the status of the repository to "loaded", also when we had
less then 50 items. Because of that we also always displayed the "Load
More" button. This is now fixed by adding the status of the repository
to the ItemsRepositoryStore, so that the "Load More" button is only
shown when there are more items to load.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.