Fixed post/page labels in feature image and save components (#1143)

closes https://github.com/TryGhost/Ghost/issues/10658

- update publish menu states to use `{{post.displayName}}` instead of hard coded `post`
- update settings menu image uploader to generate CTA using `post.displayName`
This commit is contained in:
Vikas Potluri 2019-04-06 03:01:49 -05:00 committed by Kevin Ansfield
parent bd90585956
commit c19332f093
4 changed files with 7 additions and 6 deletions

View File

@ -10,7 +10,7 @@
<div class="settings-menu-content">
{{gh-image-uploader-with-preview
image=post.featureImage
text="Upload post image"
text=(concat "Upload " post.displayName " image")
allowUnsplash=true
update=(action "setCoverImage")
remove=(action "clearCoverImage")

View File

@ -1,10 +1,10 @@
<header class="gh-publishmenu-heading">Ready to publish your post?</header>
<header class="gh-publishmenu-heading">Ready to publish your {{post.displayName}}?</header>
<section class="gh-publishmenu-content">
<div class="gh-publishmenu-radio {{if (eq saveType "publish") "active"}}" {{action "setSaveType" "publish" on="click"}}>
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
<div class="gh-publishmenu-radio-content">
<div class="gh-publishmenu-radio-label">Set it live now</div>
<div class="gh-publishmenu-radio-desc">Publish this post immediately</div>
<div class="gh-publishmenu-radio-desc">Publish this {{post.displayName}} immediately</div>
</div>
</div>
<div class="gh-publishmenu-radio {{if (eq saveType "schedule") "active"}}" {{action "setSaveType" "schedule" on="click"}}>

View File

@ -1,17 +1,17 @@
<header class="gh-publishmenu-heading">Update post status</header>
<header class="gh-publishmenu-heading">Update {{post.displayName}} status</header>
<section class="gh-publishmenu-content">
<div class="gh-publishmenu-radio {{if (eq saveType "draft") "active"}}" {{action setSaveType "draft" on="click"}}>
<div class="gh-publishmenu-radio-button" data-test-publishmenu-unpublished-option></div>
<div class="gh-publishmenu-radio-content">
<div class="gh-publishmenu-radio-label">Unpublished</div>
<div class="gh-publishmenu-radio-desc">Revert this post to a private draft</div>
<div class="gh-publishmenu-radio-desc">Revert this {{post.displayName}} to a private draft</div>
</div>
</div>
<div class="gh-publishmenu-radio {{if (eq saveType "publish") "active"}}" {{action setSaveType "publish" on="click"}}>
<div class="gh-publishmenu-radio-button" data-test-publishmenu-published-option></div>
<div class="gh-publishmenu-radio-content">
<div class="gh-publishmenu-radio-label">Published</div>
<div class="gh-publishmenu-radio-desc">Display this post publicly</div>
<div class="gh-publishmenu-radio-desc">Display this {{post.displayName}} publicly</div>
</div>
</div>
</section>

View File

@ -6,6 +6,7 @@
{{#dd.content class="gh-publishmenu-dropdown"}}
{{#if (eq displayState "published")}}
{{gh-publishmenu-published
post=post
saveType=saveType
setSaveType=(action "setSaveType")}}