Skip to content

Commit

Permalink
[Full Site Editing]: Update clear customizations copy for templates (
Browse files Browse the repository at this point in the history
…#41765)

* [Full Site Editing]: Update `clear customizations` copy for templates

* change copy for template parts

* revert to `clear customizations` copy
  • Loading branch information
ntsekouras authored Aug 8, 2022
1 parent dafdbdc commit c4f61db
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
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={ __(
'Use the template part as supplied by the theme.'
) }
onClick={ clearCustomizations }
>
{ __( 'Clear customizations' ) }
Expand Down

0 comments on commit c4f61db

Please sign in to comment.