mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 06:34:40 +03:00
webmail: more helpful error message when emptying a mailbox that is already empty
and mention in a tooltip too that "empty mailbox" only affects messages in the mailbox, not submailboxes or their messages. prompted by a question on matrix/irc
This commit is contained in:
@ -5486,7 +5486,7 @@ const newMailboxView = (xmb, mailboxlistView, otherMailbox) => {
|
||||
}
|
||||
remove();
|
||||
await withStatus('Deleting mailbox', client.MailboxDelete(mbv.mailbox.ID));
|
||||
})), dom.div(dom.clickbutton('Empty mailbox', async function click() {
|
||||
})), dom.div(dom.clickbutton('Empty mailbox', attr.title('Remove all messages from the mailbox, but not mailboxes inside this mailbox or their messages.'), async function click() {
|
||||
if (!window.confirm('Are you sure you want to empty this mailbox, permanently removing its messages? Mailboxes inside this mailbox are not affected.')) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user