Skip to content

feat: Add Empty Trash to the Trash folder context menu - #493

Open
DavideSpecter wants to merge 1 commit into
hkdb:mainfrom
DavideSpecter:feat/empty-trash-context-menu
Open

DavideSpecter wants to merge 1 commit into
hkdb:mainfrom
DavideSpecter:feat/empty-trash-context-menu

Conversation

@DavideSpecter

Copy link
Copy Markdown

Adds an Empty Trash entry to the right-click menu of the Trash folder in the sidebar, as requested in #491.

  • Shown only for folders of type trash
  • Same behaviour as the Empty Trash button in the message list: confirmation dialog, EmptyTrash(accountId, folderId), success/error toast, message list reload
  • Reuses existing i18n keys (messageList.emptyTrash, dialog.*, toast.*), so no translation changes
  • No backend changes

Files: FolderContextMenu.svelte, FolderTreeItem.svelte
Tested manually with wails build: menu appears only on Trash, confirm empties it and the list refreshes

Closes #491

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.

Add "Empty Trash" Option to the Context Menu of Trash Folders

2 participants