0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Replaced refresh button with a GhTaskButton (#20796)

ref DES-705
This commit is contained in:
Sodbileg Gansukh 2024-08-20 20:06:12 +08:00 committed by GitHub
parent a8dc689823
commit 9b41307a76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 6 deletions

View file

@ -37,12 +37,15 @@
{{#if (feature "publishFlowEndScreen")}} {{#if (feature "publishFlowEndScreen")}}
<div style="display: flex; gap: 8px;"> <div style="display: flex; gap: 8px;">
{{#if (feature "postAnalyticsRefresh")}} {{#if (feature "postAnalyticsRefresh")}}
<button type="button" class="gh-post-list-cta edit" {{on "click" this.fetchPostTask.perform}}> <GhTaskButton
{{svg-jar "reload" title="Refresh post analytics"}}<span>Refresh</span> @buttonText="Refresh"
</button> @task={{this.fetchPostTask}}
@showIcon={{true}}
@successText="Refreshed"
@class="gh-btn gh-btn-icon refresh" />
{{/if}} {{/if}}
{{#unless this.post.emailOnly}} {{#unless this.post.emailOnly}}
<button type="button" class="gh-post-list-cta edit share" {{on "click" this.togglePublishFlowModal}}> <button type="button" class="gh-post-list-cta share" {{on "click" this.togglePublishFlowModal}}>
{{svg-jar "share" title="Share post"}}<span>Share</span> {{svg-jar "share" title="Share post"}}<span>Share</span>
</button> </button>
{{/unless}} {{/unless}}
@ -50,7 +53,7 @@
<span class="dropdown"> <span class="dropdown">
<GhDropdownButton <GhDropdownButton
@dropdownName="analytics-actions-menu" @dropdownName="analytics-actions-menu"
@classNames="gh-post-list-cta edit gh-btn-icon icon-only gh-btn-action-icon" @classNames="gh-post-list-cta gh-btn-icon icon-only gh-btn-action-icon"
@title="Analytics Actions" @title="Analytics Actions"
data-test-button="analytics-actions" data-test-button="analytics-actions"
> >

View file

@ -376,6 +376,8 @@ export default class Analytics extends Component {
type: 'success' type: 'success'
}); });
} }
return true;
} }
get showLinks() { get showLinks() {

View file

@ -1486,7 +1486,7 @@
width: 56px; width: 56px;
} }
.gh-post-analytics-header .gh-post-list-cta { .gh-post-analytics-header .gh-post-list-cta.edit {
margin-top: -14px; margin-top: -14px;
margin-right: 0; margin-right: 0;
} }