From 9df3ff8d633a18e934d4e62b0e2e718620760552 Mon Sep 17 00:00:00 2001 From: jelemux Date: Tue, 9 Feb 2021 22:38:40 +0100 Subject: add file input field, include file as data url in vcard --- src/view/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/view/main.rs') diff --git a/src/view/main.rs b/src/view/main.rs index c2af72a..d6b2cb9 100644 --- a/src/view/main.rs +++ b/src/view/main.rs @@ -377,9 +377,10 @@ impl Component for MainView { builder = builder.with_org(vec![organizational.org]); } - if !organizational.logo.is_empty() { - builder = builder.with_logo(organizational.logo); - } + match organizational.logo { + Some(file) => builder = builder.with_logo(file.content), + None => (), + }; if !organizational.title.is_empty() { builder = builder.with_title(organizational.title); -- cgit v1.2.3