0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed Refresh button if a post is not emailed

This commit is contained in:
Daniël van der Winden 2024-08-28 15:09:26 +02:00
parent ac345aa84d
commit e4ca2088e9

View file

@ -37,6 +37,7 @@
{{#if (feature "publishFlowEndScreen")}} {{#if (feature "publishFlowEndScreen")}}
<div style="display: flex; gap: 8px;"> <div style="display: flex; gap: 8px;">
{{#if (feature "postAnalyticsRefresh")}} {{#if (feature "postAnalyticsRefresh")}}
{{#if (or this.post.emailOnly this.post.hasBeenEmailed)}}
<GhTaskButton <GhTaskButton
@buttonText="Refresh" @buttonText="Refresh"
@task={{this.fetchPostTask}} @task={{this.fetchPostTask}}
@ -45,6 +46,7 @@
@successText="Refreshed" @successText="Refreshed"
@class="gh-btn gh-btn-icon refresh" @class="gh-btn gh-btn-icon refresh"
@successClass="gh-btn gh-btn-icon refresh" /> @successClass="gh-btn gh-btn-icon refresh" />
{{/if}}
{{/if}} {{/if}}
{{#unless this.post.emailOnly}} {{#unless this.post.emailOnly}}
<button type="button" class="gh-post-list-cta share" {{on "click" this.togglePublishFlowModal}}> <button type="button" class="gh-post-list-cta share" {{on "click" this.togglePublishFlowModal}}>