-
{"Members"}
-
-
-
-
- {"User Id"} |
- {"Display name"} |
- |
-
-
-
- {if g.users.is_empty() {
- html! {
-
- {"No members"} |
- |
-
- }
- } else {
- html! {<>{g.users.iter().map(make_user_row).collect::>()}>}
- }}
-
-
- {self.view_add_user_button(g)}
-
-
-
+
+
{"Members"}
+
+
+
+
+ {"User Id"} |
+ {"Display name"} |
+ |
+
+
+
+ {if g.users.is_empty() {
+ html! {
+
+ {"No members"} |
+ |
+
+ }
+ } else {
+ html! {<>{g.users.iter().map(make_user_row).collect::>()}>}
+ }}
+
+
+
-
}
}
@@ -222,12 +218,8 @@ impl Component for GroupDetails {
(Some(u), error) => {
html! {
- /*
-
- */
{self.view_user_list(u)}
+ {self.view_add_user_button(u)}
{self.view_messages(error)}
}
diff --git a/app/src/components/select.rs b/app/src/components/select.rs
index e78581e..1125b2b 100644
--- a/app/src/components/select.rs
+++ b/app/src/components/select.rs
@@ -69,6 +69,7 @@ impl Component for Select {
html! {
diff --git a/app/src/components/user_details.rs b/app/src/components/user_details.rs
index 840d95f..d6b31bc 100644
--- a/app/src/components/user_details.rs
+++ b/app/src/components/user_details.rs
@@ -153,10 +153,6 @@ impl UserDetails {
} else {
html! {<>{u.groups.iter().map(make_group_row).collect::
>()}>}
}}
-
-
- {self.view_add_group_button(u)}
-
@@ -222,6 +218,7 @@ impl Component for UserDetails {
user=u.clone()
on_error=self.link.callback(Msg::OnError)/>
{self.view_group_memberships(u)}
+ {self.view_add_group_button(u)}