1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-24 08:52:28 +02:00
immich/web
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
..
bin chore: web shutdown signal (#7114) 2024-02-14 08:57:02 -06:00
src fix: prevent trashing of trashed assets (#10028) 2024-06-08 15:03:39 -05:00
static chore(web): favicon without white bg (#8251) 2024-03-24 16:44:59 -05:00
.dockerignore
.eslintignore chore(deps): update web (#8066) 2024-03-20 14:08:01 -05:00
.eslintrc.cjs fix(web): require button type (#9786) 2024-05-27 14:06:15 +07:00
.gitignore
.npmrc
.nvmrc fix(deps): update typescript-projects (#9971) 2024-06-04 10:35:24 +01:00
.prettierignore
.prettierrc chore(web): auto sort imports (#7118) 2024-02-14 10:54:32 -05:00
Dockerfile chore(deps): update node.js to 53108f6 (#9450) 2024-05-14 10:53:04 +01:00
package-lock.json feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
package.json feat(web): translations (#9854) 2024-06-04 15:53:00 -04:00
postcss.config.cjs
README.md docs: add some details for getting started as a developer (#8468) 2024-04-02 11:56:33 -05:00
svelte.config.js perf: precompress and cache assets (#7757) 2024-03-08 21:15:38 -05:00
tailwind.config.cjs fix(web): asset-grid padding/margin left fix (#8125) 2024-03-21 00:18:38 -05:00
tsconfig.json fix(web): validation when editing asset date & time (#7160) 2024-02-17 09:28:34 -05:00
vite.config.js feat(web): separate command to build with rollup plugin visualizer (#9097) 2024-04-26 15:36:30 -04:00

Immich web project

This project uses the SvelteKit web framework. Please refer to the SvelteKit docs for information on getting started as a contributor to this project. In particular, it will help you navigate the project's code if you understand the basics of SvelteKit routing.

When developing locally, you will run a SvelteKit Node.js server. When this project is deployed to production, it is built as a SPA and deployed as part of [../server](the server project).