1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-10 13:56:47 +01:00
immich/web/src/lib/components
Robert Schäfer d8d64ecc45
fix: prevent trashing of trashed assets (#10028)
* fix: prevent trashing of trashed assets

Motivation
----------
This will improve user experience by hiding a pointless action.

You can not trash a trashed asset again. It won't get any trashier than it already is.

How to test
-----------
1. Visit route `/trash`
2. Click on an asset
3. Press "Delete" on your keyboard
4. Nothing happens
5. Try to find the trash button in the top right
6. You can't find it

* refactor: follow @michelheusschen's review

See:
https://github.com/immich-app/immich/pull/10028#pullrequestreview-2105296755

* refactor:  follow @michelheusschen's 2nd review

See: https://github.com/immich-app/immich/pull/10028#discussion_r1632057833
2024-06-08 15:03:39 -05:00
..
admin-page fix(web): storage migration description (#10041) 2024-06-08 04:57:18 -05:00
album-page chore(web): use development lang for tests (#10025) 2024-06-07 16:12:39 +01:00
asset-viewer fix: prevent trashing of trashed assets (#10028) 2024-06-08 15:03:39 -05:00
assets/thumbnail refactor: asset media endpoints (#9831) 2024-05-31 13:44:04 -04:00
elements feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
faces-page feat(web): Option to assign people to unassigned faces (#9773) 2024-06-05 07:26:00 +00:00
forms feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
layouts feat(web): search albums (#7322) 2024-02-22 09:04:43 -05:00
map-page feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
memory-page feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
onboarding-page fix(web): translations (#10021) 2024-06-07 12:23:13 +01:00
photos-page fix(web): translations (#10021) 2024-06-07 12:23:13 +01:00
share-page feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
shared-components fix(web): drag and drop with non english language (#10040) 2024-06-08 04:57:46 -05:00
sharedlinks-page feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
user-settings-page fix(web): language setting (#10024) 2024-06-07 11:35:05 -05:00
utilities-page feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
slideshow-settings.svelte fix(web): translations (#10021) 2024-06-07 12:23:13 +01:00