-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(web): delete action from full-screen reset view port in gallery view #15469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hello, can you help explain the logic behind the changes with a few words in the PR's description? Thank you |
I added a description to the PR. |
|
Hello! Any feedback on this? I ask just because if I'm on the right track I'd love to contribute more |
…t to the top of gallery view
|
We just got around to testing this and all seems to work well. With regards to converting other things to having pre actions, if you think it's worthwhile for the other actions then please feel free to open a PR making these changes. |
…n-grid * main: (32 commits) docs: clean up environment variables formatting & grammar (immich-app#16555) fix: reset/regenerate memories (immich-app#16548) fix(deps): update machine-learning (immich-app#16560) chore(deps): update node (immich-app#16538) refactor: migration tag repository to kysely (immich-app#16398) feat: qr code for new shared link (immich-app#16543) chore(deps): update github-actions (immich-app#16539) fix(docs): info on preloading ML models (immich-app#16452) docs: better facial recognition cluster guide (immich-app#14911) fix(web): delete action closes asset viewer in asset view (immich-app#15469) feat(cli): watch paths for auto uploading daemon (immich-app#14923) ci: weblate checks should always run, should skip on en.json (immich-app#16544) feat(web): Video memories on web (immich-app#16500) fix(deps): update typescript-projects (immich-app#16540) chore(mobile): fix store.put type def (immich-app#16517) refactor(mobile): move timeline methods to timeline repo (immich-app#16526) chore(deps): update dependency eslint-plugin-svelte to v3 (immich-app#16532) refactor(server): link live photos as part of metadata extraction instead of queueing job (immich-app#16390) chore(deps): update dependency globals to v16 (immich-app#16534) ci: don't check weblate lock on chore/translations and add success job (immich-app#16533) ...
The existing action handler "onAction" is called after an action is performed.
immich/web/src/lib/components/asset-viewer/actions/delete-action.svelte
Lines 45 to 47 in f60b923
This creates a problem in handling the delete, where the code that needs the information on the asset to be deleted is executed too late, causing this bug #14647
This PR introduces the preAction handler and moves the delete handling logic from the onAction to the preAction
Fixes #14647