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): show download button correctly based on shared link permission #8288

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

alextran1502
Copy link
Contributor

fix #8248

Copy link

cloudflare-pages bot commented Mar 26, 2024

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3458cac
Status: ✅  Deploy successful!
Preview URL: https://1e707f18.immich.pages.dev
Branch Preview URL: https://fix-8248.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.

We can detect if it is a shared link without passing it down as a prop on all of those components.

@jrasm91
Copy link
Contributor

jrasm91 commented Mar 26, 2024

@@ -192,6 +193,10 @@
}

onMount(async () => {
if (isSharedLink()) {
sharedLink = await getMySharedLink({ key: getKey() });
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this load the shared link every time the component is opened? This might not be ideal. Another option would be to use the context api or a store for tracking state related to the shared link.

@alextran1502 alextran1502 merged commit 7f85443 into main Apr 3, 2024
24 checks passed
@alextran1502 alextran1502 deleted the fix-8248 branch April 3, 2024 14:37
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.

Shared albuns download of individual assets not working
4 participants