immich/web/src/lib/components/asset-viewer
DeclanE e5978981f3
Fix: Disable 'As profile picture' option for videos in context menu a… (#7830)
* Fix: Disable 'As profile picture' option for videos in context menu asset-viewer-nav-bar.svelte

This commit modifies the context menu behavior to disable the "As profile picture" option when interacting with video assets. Previously, the option was available for all asset types, including videos, which could lead to confusion when this displayed an error.

With this change, the "As profile picture" option is conditionally rendered based on the asset type. If the asset is a video, the option is not displayed in the context menu.

This adjustment enhances the web experience by preventing users from attempting to set a video as their profile picture, which is not supported by the system.

Fixes: #7724

* Switched to check if photo instead of video
2024-03-10 18:32:27 -04:00
..
activity-status.svelte chore: enum support for new API (#7110) 2024-02-14 06:38:57 -08:00
activity-viewer.svelte feat(web): improve alt text (#7596) 2024-03-03 16:42:17 -05:00
album-list-item.svelte chore: enum support for new API (#7110) 2024-02-14 06:38:57 -08:00
asset-viewer-nav-bar.svelte Fix: Disable 'As profile picture' option for videos in context menu a… (#7830) 2024-03-10 18:32:27 -04:00
asset-viewer.svelte feat(web): add share link on asset-viewer (#7595) 2024-03-03 15:15:35 -06:00
detail-panel.svelte chore(mobile,web): use originalFilename (#7692) 2024-03-06 23:20:04 -05:00
download-panel.svelte chore: svelte-kit-2 (#6103) 2024-01-20 12:47:41 -06:00
intersection-observer.svelte feat(server, web): smart search filtering and pagination (#6525) 2024-02-12 20:50:47 -05:00
navigation-area.svelte chore(web): sort tailwindcss class automatically (#3330) 2023-07-18 13:19:39 -05:00
panorama-viewer.svelte refactor(web): drop axios (#7490) 2024-02-29 11:22:39 -05:00
photo-sphere-viewer-adapter.svelte fix (web): panorama / 360 view - partial panorama: use photo-sphere-viewer (#6992) 2024-02-09 10:17:51 -06:00
photo-viewer.svelte fix(server, web): prevent reload when liking an asset (#7589) 2024-03-04 17:41:10 -05:00
slideshow-bar.svelte feat(web): ascending order for slideshow (#7502) 2024-03-02 09:50:02 -06:00
video-viewer.svelte chore(web): cleanup promise handling (#7382) 2024-02-27 10:37:37 -06:00