mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
feat(web): allow ctrl-click / cmd-click on photos (#9954)
* feat(web): allow ctrl-click / cmd-click on photos * fix: photo opening when deselected bug * fix: consistent naming * remove redundant code * fix: disabled picture is clickable in "add to album" grid * remove unnecessary code * cleanup * fix file permissions * fix: album selection bug * fix: stack slideshow bug & search gallery viewer bug * cleanup * fix dark mode stack slideshow bug * cleanup --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
d8d64ecc45
commit
4d862525bc
5 changed files with 28 additions and 14 deletions
web/src/lib/utils
|
@ -31,7 +31,7 @@ function currentUrlWithoutAsset() {
|
|||
: $page.url.pathname.replace(/(\/photos.*)$/, '') + $page.url.search;
|
||||
}
|
||||
|
||||
function currentUrlReplaceAssetId(assetId: string) {
|
||||
export function currentUrlReplaceAssetId(assetId: string) {
|
||||
const $page = get(page);
|
||||
// this contains special casing for the /photos/:assetId photos route, which hangs directly
|
||||
// off / instead of a subpath, unlike every other asset-containing route.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue