Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the "Move to Trash" button #14591

Merged
merged 2 commits into from
Mar 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/editor/src/components/post-featured-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const ALLOWED_MEDIA_TYPES = [ 'image' ];

// Used when labels from post type were not yet loaded or when they are not present.
const DEFAULT_FEATURE_IMAGE_LABEL = __( 'Featured Image' );
const DEFAULT_SET_FEATURE_IMAGE_LABEL = __( 'Set featured image' );
const DEFAULT_REMOVE_FEATURE_IMAGE_LABEL = __( 'Remove image' );
const DEFAULT_SET_FEATURE_IMAGE_LABEL = __( 'Set Featured Image' );
const DEFAULT_REMOVE_FEATURE_IMAGE_LABEL = __( 'Remove Image' );

function PostFeaturedImage( { currentPostId, featuredImageId, onUpdateImage, onRemoveImage, media, postType } ) {
const postLabel = get( postType, [ 'labels' ], {} );
Expand Down Expand Up @@ -81,7 +81,7 @@ function PostFeaturedImage( { currentPostId, featuredImageId, onUpdateImage, onR
modalClass="editor-post-featured-image__media-modal"
render={ ( { open } ) => (
<Button onClick={ open } isDefault isLarge>
{ __( 'Replace image' ) }
{ __( 'Replace Image' ) }
</Button>
) }
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/components/post-trash/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function PostTrash( { isNew, postId, postType, ...props } ) {

return (
<Button className="editor-post-trash button-link-delete" onClick={ onClick } isDefault isLarge>
{ __( 'Move to trash' ) }
{ __( 'Move to Trash' ) }
</Button>
);
}
Expand Down