summaryrefslogtreecommitdiff
path: root/src/view
diff options
context:
space:
mode:
Diffstat (limited to 'src/view')
-rw-r--r--src/view/main.rs7
-rw-r--r--src/view/organizational.rs3
2 files changed, 6 insertions, 4 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);
diff --git a/src/view/organizational.rs b/src/view/organizational.rs
index b11c181..e6636ec 100644
--- a/src/view/organizational.rs
+++ b/src/view/organizational.rs
@@ -1,3 +1,4 @@
+use crate::viewmodel::utility::File;
use yew::prelude::*;
use yewtil::NeqAssign;
use crate::viewmodel::Error;
@@ -17,7 +18,7 @@ pub struct OrganizationalView {
pub enum Msg {
UpdateOrg(String),
- UpdateLogo(String),
+ UpdateLogo(Option<File>),
UpdateTitle(String),
UpdateRole(String),
UpdateMember(String),