composer: send NewJob event on submission

This commit is contained in:
Manos Pitsidianakis 2020-10-16 22:30:56 +03:00
parent a2456fa3f5
commit bb51d36579
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

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.",