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")}}
<div style="display: flex; gap: 8px;">
{{#if (feature "postAnalyticsRefresh")}}
<button type="button" class="gh-post-list-cta edit" {{on "click" this.fetchPostTask.perform}}>
{{svg-jar "reload" title="Refresh post analytics"}}<span>Refresh</span>
</button>
<GhTaskButton
@buttonText="Refresh"
@task={{this.fetchPostTask}}
@showIcon={{true}}
@successText="Refreshed"
@class="gh-btn gh-btn-icon refresh" />
{{/if}}
{{#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>
</button>
{{/unless}}
@ -50,7 +53,7 @@
<span class="dropdown">
<GhDropdownButton
@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"
data-test-button="analytics-actions"
>

View File

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

View File

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