Fixed email debug page always showing error + breadcrumb

This commit is contained in:
Simon Backx 2022-12-02 14:45:06 +01:00
parent 9b276e6aa2
commit 928a73c536
2 changed files with 14 additions and 17 deletions

View File

@ -6,7 +6,7 @@
Posts
</LinkTo>
{{svg-jar "arrow-right-small"}}
<LinkTo @route="posts.analytics" @model={{@model.id}}>
<LinkTo @route="posts.analytics" @model={{this.post.id}}>
Analytics
</LinkTo>
{{svg-jar "arrow-right-small"}}
@ -40,6 +40,7 @@
{{/let}}
</div>
</div>
{{#if (eq this.post.email.status 'failed') }}
<div class="gh-box gh-box-error gh-box-tip gh-email-debug-error">
{{svg-jar "warning"}}
<div class="gh-email-debug-errortext">
@ -48,6 +49,7 @@
</div>
<button type="button" class="gh-btn gh-btn-primary gh-btn-icon gh-btn-red ember-view self-center"><span>Retry</span></button>
</div>
{{/if}}
</div>
</GhCanvasHeader>

View File

@ -13,12 +13,7 @@ export default class Debug extends AuthenticatedRoute {
'authors.roles',
'email',
'tiers',
'newsletter',
'count.conversions',
'count.clicks',
'sentiment',
'count.positive_feedback',
'count.negative_feedback'
'newsletter'
].join(',')
};