composer: send NewJob event on submission

jmap-eventsource
Manos Pitsidianakis 2020-10-16 22:30:56 +03:00
parent a2456fa3f5
commit bb51d36579
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 5 additions and 0 deletions

View File

@ -887,6 +887,11 @@ impl Component for Composer {
) {
Ok(job) => {
let handle = context.job_executor.spawn_blocking(job);
context
.replies
.push_back(UIEvent::StatusEvent(StatusEvent::NewJob(
handle.job_id,
)));
self.mode = ViewMode::WaitingForSendResult(
UIDialog::new(
"Waiting for confirmation.. The tab will close automatically on successful submission.",