Skip to content

fix: prevent right-click delete from duplicating payloads in DumpItem#543

Merged
luanfreitasdev merged 1 commit into4.xfrom
289-bug-right-click-delete-copies-instead
Apr 14, 2026
Merged

fix: prevent right-click delete from duplicating payloads in DumpItem#543
luanfreitasdev merged 1 commit into4.xfrom
289-bug-right-click-delete-copies-instead

Conversation

@luanfreitasdev
Copy link
Copy Markdown
Member

This pull request refactors how dump deletion is handled in the application, simplifying the communication between the HomeView and DumpItem components. The main change is moving the dump deletion logic directly into the DumpItem component, removing the need to emit a deleteDump event and related handler in HomeView.

Component communication and event handling:

  • Removed the deleteDump event emission and its handler from both DumpItem.vue and HomeView.vue, so that DumpItem now handles dump deletion internally rather than delegating it to the parent (HomeView). [1] [2] [3] [4] [5]

Component logic simplification:

  • Updated the delete button in DumpItem.vue to call payloadStore.removePayload(payload.id) directly, further reducing coupling between components.

These changes make the codebase simpler and reduce unnecessary event bubbling between components.

closes: #542

@luanfreitasdev luanfreitasdev merged commit 8ba1ac4 into 4.x Apr 14, 2026
3 checks passed
@luanfreitasdev luanfreitasdev deleted the 289-bug-right-click-delete-copies-instead branch April 14, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Right-click delete copies instead

1 participant