From c695d7a8e2be16ec19ac3ca8af39b64c55b88bac Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 15 Sep 2019 23:35:30 +0300 Subject: ui: add Notification kinds --- ui/src/components/mail/view/envelope.rs | 1 + ui/src/components/mail/view/html.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/src/components/mail/view') 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() }; -- cgit v1.2.3