From ecb862f63489aa21707fa099571b8fc7f166a874 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 31 Oct 2022 13:01:37 +0100 Subject: [PATCH] Fix dashboard view Signed-off-by: Thomas Citharel --- js/src/graphql/admin.ts | 7 +++ js/src/views/Admin/DashboardView.vue | 64 ++++------------------------ 2 files changed, 16 insertions(+), 55 deletions(-) diff --git a/js/src/graphql/admin.ts b/js/src/graphql/admin.ts index 0d47b0fa7..768ed65ea 100644 --- a/js/src/graphql/admin.ts +++ b/js/src/graphql/admin.ts @@ -8,11 +8,18 @@ export const DASHBOARD = gql` id uuid title + beginsOn picture { id alt url } + attributedTo { + ...ActorFragment + } + organizerActor { + ...ActorFragment + } } lastGroupCreated { ...ActorFragment diff --git a/js/src/views/Admin/DashboardView.vue b/js/src/views/Admin/DashboardView.vue index 932d6c36d..cac05b8dd 100644 --- a/js/src/views/Admin/DashboardView.vue +++ b/js/src/views/Admin/DashboardView.vue @@ -64,61 +64,14 @@ }" /> -
-
-
- -

{{ t("Last published event") }}

-

- {{ dashboard?.lastPublicEventPublished.title }} -

-
- -
-
-
+
+
+

{{ t('Last published event')}}

+
-
-
- -

{{ t("Last group created") }}

-

- {{ - dashboard?.lastGroupCreated.name || - dashboard?.lastGroupCreated.preferredUsername - }} -

-
- -
-
-
+
+

{{ t('Last group created')}}

+
@@ -127,7 +80,6 @@