diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-15 23:35:30 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-09-15 23:38:32 +0300 |
commit | c695d7a8e2be16ec19ac3ca8af39b64c55b88bac (patch) | |
tree | f3d53e46745a4f588d26fea886349e1ff1c8b092 /ui/src/components/mail/view | |
parent | 5cf620f43c09ccc2278aedf1908f20fa3926870c (diff) |
ui: add Notification kinds
Diffstat (limited to 'ui/src/components/mail/view')
-rw-r--r-- | ui/src/components/mail/view/envelope.rs | 1 | ||||
-rw-r--r-- | ui/src/components/mail/view/html.rs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ui/src/components/mail/view/envelope.rs b/ui/src/components/mail/view/envelope.rs index 58e49a6d..a614a21c 100644 --- a/ui/src/components/mail/view/envelope.rs +++ b/ui/src/components/mail/view/envelope.rs @@ -112,6 +112,7 @@ impl EnvelopeView { filter_invocation, )), String::new(), + Some(NotificationType::ERROR), )); return; } diff --git a/ui/src/components/mail/view/html.rs b/ui/src/components/mail/view/html.rs index 076db1ed..97ee5aba 100644 --- a/ui/src/components/mail/view/html.rs +++ b/ui/src/components/mail/view/html.rs @@ -48,9 +48,10 @@ impl HtmlView { context.replies.push_back(UIEvent::Notification( Some(format!( "Failed to start html filter process: {}", - filter_invocation + filter_invocation, )), String::new(), + Some(NotificationType::ERROR), )); String::from_utf8_lossy(&bytes).to_string() } else { @@ -93,6 +94,7 @@ impl HtmlView { context.replies.push_back(UIEvent::Notification( Some("Failed to find any application to use as html filter".to_string()), String::new(), + Some(NotificationType::ERROR), )); String::from_utf8_lossy(&bytes).to_string() }; |