immich/web
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
..
bin chore: web shutdown signal (#7114) 2024-02-14 08:57:02 -06:00
src Fix: Disable 'As profile picture' option for videos in context menu a… (#7830) 2024-03-10 18:32:27 -04:00
static fix(web): use env for web folder path (#5753) 2023-12-16 11:15:30 -06:00
.dockerignore feat(web)!: SPA (#5069) 2023-11-17 22:13:36 -06:00
.eslintignore Add ablum feature to web (#352) 2022-07-15 23:18:17 -05:00
.eslintrc.cjs chore(web): fix eslint setup in VS Code (#7543) 2024-02-29 19:28:54 -05:00
.gitignore Add ablum feature to web (#352) 2022-07-15 23:18:17 -05:00
.npmrc Add web interface with admin functionality (#167) 2022-05-21 02:23:55 -05:00
.prettierignore refactor: open api (#6334) 2024-01-12 07:36:27 -05:00
.prettierrc chore(web): auto sort imports (#7118) 2024-02-14 10:54:32 -05:00
Dockerfile fix(web/server): revert renovate hash update (#7464) 2024-02-27 10:28:00 -06:00
package-lock.json Version v1.98.1 2024-03-08 23:44:13 +00:00
package.json Version v1.98.1 2024-03-08 23:44:13 +00:00
postcss.config.cjs chore(web): prettier (#2821) 2023-06-30 23:50:47 -05:00
svelte.config.js perf: precompress and cache assets (#7757) 2024-03-08 21:15:38 -05:00
tailwind.config.cjs feat(web): new fonts (#5165) 2023-11-19 21:06:16 -06:00
tsconfig.json fix(web): validation when editing asset date & time (#7160) 2024-02-17 09:28:34 -05:00
vite.config.js perf(web): optimize images and modules (#7088) 2024-02-18 13:18:40 -06:00