Skip to content
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

fix(web): album state after removing assets #7745

Merged
merged 2 commits into from Mar 8, 2024

Conversation

michelheusschen
Copy link
Contributor

The album summary (date range + asset count) isn't updated after removing assets and when removing all assets from an album, the page doesn't return to the initial 'empty state'. Fixed by making asset count reactive and creating a new AlbumSummary component, which also eliminates code duplication.

Copy link

cloudflare-pages bot commented Mar 8, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: fdbb4be
Status: ✅  Deploy successful!
Preview URL: https://262ab325.immich.pages.dev
Branch Preview URL: https://fix-web-album-assetcount-sta.immich.pages.dev

View logs

Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@jrasm91 jrasm91 merged commit fa32c66 into main Mar 8, 2024
25 checks passed
@jrasm91 jrasm91 deleted the fix/web-album-assetcount-state branch March 8, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants