immich/web/src/test-data
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
..
factories fix: prevent trashing of trashed assets (#10028) 2024-06-08 15:03:39 -05:00
index.ts Add web test setup (#597) 2022-09-07 05:20:19 -05:00
setup.ts chore(web): use development lang for tests (#10025) 2024-06-07 16:12:39 +01:00