mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-28 11:24:11 +08:00
Display an error dialog if the user needs to choose a drafts folder to send mail #634
This commit is contained in:
parent
b0a8855e21
commit
d3bcfbfe45
1 changed files with 10 additions and 0 deletions
|
@ -19,4 +19,14 @@ export default class SyncbackDraftTask extends Task {
|
|||
this.accountId = (draft || {}).accountId;
|
||||
this.headerMessageId = (draft || {}).headerMessageId;
|
||||
}
|
||||
|
||||
onError({ key, debuginfo }) {
|
||||
if (key === 'no-drafts-folder') {
|
||||
AppEnv.showErrorDialog({
|
||||
title: 'Drafts folder not found',
|
||||
message:
|
||||
"Mailspring can't find your Drafts folder. To create and send mail, visit Preferences > Folders and choose a Drafts folder.",
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue