From 53e20f30ae1bc39c1880ac8e6dd9c39b12bddf77 Mon Sep 17 00:00:00 2001 From: James Morris Date: Mon, 24 Oct 2022 11:03:54 +0100 Subject: [PATCH] Rearranged the markup so the empty state shows ok without pie chart refs https://github.com/orgs/TryGhost/projects/60 --- .../components/posts/post-activity-feed.hbs | 81 ++++++++++--------- 1 file changed, 42 insertions(+), 39 deletions(-) diff --git a/ghost/admin/app/components/posts/post-activity-feed.hbs b/ghost/admin/app/components/posts/post-activity-feed.hbs index 2c528bfaa9..12f9f3931a 100644 --- a/ghost/admin/app/components/posts/post-activity-feed.hbs +++ b/ghost/admin/app/components/posts/post-activity-feed.hbs @@ -1,16 +1,18 @@
-
- {{#let (activity-feed-fetcher filter=(members-event-filter post=@postId excludedEvents=this.getEventTypes) pageSize=this.pageSize) as |eventsFetcher|}} - {{#if eventsFetcher.isError}} + {{#let (activity-feed-fetcher filter=(members-event-filter post=@postId excludedEvents=this.getEventTypes) pageSize=this.pageSize) as |eventsFetcher|}} + {{#if eventsFetcher.isError}} +

There was an error loading events

{{#if eventsFetcher.errorMessage}} {{eventsFetcher.errorMessage}} {{/if}}
- {{/if}} +
+ {{/if}} - {{#if (and (not eventsFetcher.data) (not eventsFetcher.isLoading))}} + {{#if (and (not eventsFetcher.data) (not eventsFetcher.isLoading))}} +
{{#if (eq this.eventType "sent")}} @@ -36,7 +38,9 @@ {{/if}}
- {{else}} +
+ {{else}} +
{{#each eventsFetcher.data as |event|}} {{#let (parse-member-event event) as |parsedEvent|}}
@@ -107,39 +111,38 @@ {{/if}}
+
+ {{#if (eq @eventType 'feedback')}} +
+
+ +
+ +
+
+ +
+ + +
+
{{/if}} - {{/let}} -
- - {{#if (eq @eventType 'feedback')}} -
-
- -
- -
-
- -
- - -
-
- {{/if}} + {{/if}} + {{/let}}
\ No newline at end of file