diff --git a/app/queries/get_group_details.graphql b/app/queries/get_group_details.graphql index b338527..00400d7 100644 --- a/app/queries/get_group_details.graphql +++ b/app/queries/get_group_details.graphql @@ -2,6 +2,8 @@ query GetGroupDetails($id: Int!) { group(groupId: $id) { id displayName + creationDate + uuid users { id displayName diff --git a/app/queries/get_group_list.graphql b/app/queries/get_group_list.graphql index 28f56e4..54714c2 100644 --- a/app/queries/get_group_list.graphql +++ b/app/queries/get_group_list.graphql @@ -2,5 +2,6 @@ query GetGroupList { groups { id displayName + creationDate } } diff --git a/app/queries/get_user_details.graphql b/app/queries/get_user_details.graphql index 8497ac0..f476f2d 100644 --- a/app/queries/get_user_details.graphql +++ b/app/queries/get_user_details.graphql @@ -6,6 +6,7 @@ query GetUserDetails($id: String!) { firstName lastName creationDate + uuid groups { id displayName diff --git a/app/src/components/group_details.rs b/app/src/components/group_details.rs index 442fec5..33bbd6f 100644 --- a/app/src/components/group_details.rs +++ b/app/src/components/group_details.rs @@ -68,6 +68,45 @@ impl GroupDetails { } } + fn view_details(&self, g: &Group) -> Html { + html! { + <> +
{"Groups"} | +{"Group name"} | +{"Creation date"} | {"Delete"} | + {&group.creation_date.date().naive_local()} + |
+
+
+ {&self.common.user.uuid}
+
+ |
---|