1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 06:31:58 +00:00

Update web/src/lib/components/photos-page/asset-grid.svelte

Co-authored-by: Daniel Dietzler <36593685+danieldietzler@users.noreply.github.com>
This commit is contained in:
martin 2024-05-27 21:02:08 +02:00 committed by GitHub
parent 43aa1e8162
commit a20ff86591
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,7 @@
// you're not supposed to manage your assets on the trash page: there's no button to manage it, then there's no reason to have shortcuts to do it.
if ($page.url.pathname !== AppRoute.TRASH) {
shortcuts.push({ shortcut: { key: 'a', shift: true }, onShortcut: onArchive });
// on some page, you can't favorite assets (like on `/parthner`)
// on some pages, you can't favorite assets (like on `/partner`)
if (isAllFavorite !== null) {
shortcuts.push({ shortcut: { key: 'f' }, onShortcut: onFavorite });
}