mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat(web): reactively update shared link expiration (#22274)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
719bf763e4
commit
0a6b2ad26e
@@ -54,8 +54,15 @@
|
||||
}
|
||||
};
|
||||
|
||||
const handleEditDone = async () => {
|
||||
await refresh();
|
||||
const handleEditDone = async (updatedLink?: SharedLinkResponseDto) => {
|
||||
if (updatedLink) {
|
||||
const index = sharedLinks.findIndex((link) => link.id === updatedLink.id);
|
||||
if (index !== -1) {
|
||||
sharedLinks[index] = updatedLink;
|
||||
}
|
||||
} else {
|
||||
await refresh();
|
||||
}
|
||||
await goto(AppRoute.SHARED_LINKS);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user