Display an error dialog if the user needs to choose a drafts folder to send mail #634

This commit is contained in:
Ben Gotow 2018-02-03 11:06:58 -08:00
parent b0a8855e21
commit d3bcfbfe45

View file

@ -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.",
});
}
}
}