diff options
author | jelemux <jeremias.weber@protonmail.com> | 2021-02-09 22:38:40 +0100 |
---|---|---|
committer | jelemux <jeremias.weber@protonmail.com> | 2021-02-09 22:38:40 +0100 |
commit | 9df3ff8d633a18e934d4e62b0e2e718620760552 (patch) | |
tree | 9d84d5fd3e418807905b3da928c1a2c3664b0272 /src/view/main.rs | |
parent | ad9ba30ed217ec9907d1faf389c321a1dcf5c13a (diff) | |
download | wasm-card-9df3ff8d633a18e934d4e62b0e2e718620760552.tar.gz wasm-card-9df3ff8d633a18e934d4e62b0e2e718620760552.tar.bz2 |
add file input field, include file as data url in vcard
Diffstat (limited to 'src/view/main.rs')
-rw-r--r-- | src/view/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
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); |