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

[Full Site Editing]: Update clear customizations copy for templates #41765

Merged
merged 3 commits into from
Aug 8, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function DeleteTemplate() {
} }
info={
isRevertable
? __( 'Restore template to default state' )
? __( 'Use the template as supplied by the theme.' )
: undefined
}
>
Expand Down
4 changes: 3 additions & 1 deletion packages/edit-site/src/components/list/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export default function Actions( { template } ) {
) }
{ isRevertable && (
<MenuItem
info={ __( 'Restore to default state' ) }
info={ __(
'Use the template as supplied by the theme.'
) }
onClick={ () => {
revertAndSaveTemplate();
onClose();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default function Actions( { template } ) {
{ ( { onClose } ) => (
<MenuGroup>
<MenuItem
info={ __( 'Restore to default state' ) }
info={ __(
'Use the template as supplied by the theme.'
) }
onClick={ () => {
revertTemplate( template );
onClose();
Expand Down
4 changes: 3 additions & 1 deletion packages/edit-site/src/components/template-details/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ export default function TemplateDetails( { template, onClose } ) {
<MenuGroup className="edit-site-template-details__group edit-site-template-details__revert">
<MenuItem
className="edit-site-template-details__revert-button"
info={ __( 'Restore template to default state' ) }
info={ __(
'Use the template as supplied by the theme.'
) }
onClick={ revert }
>
{ __( 'Clear customizations' ) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ function TemplatePartItemMore( {
{ isTemplateRevertable( templatePart ) && (
<MenuGroup>
<MenuItem
info={ __( 'Restore template to default state' ) }
info={ __(
ntsekouras marked this conversation as resolved.
Show resolved Hide resolved
'Use the template part as supplied by the theme.'
) }
onClick={ clearCustomizations }
>
{ __( 'Clear customizations' ) }
Expand Down