Skip to content

Commit

Permalink
Improve logic to show entities saved panel description. (#67971)
Browse files Browse the repository at this point in the history
* Improve logic to show entities saved panel description.

* Apply CR suggestion

---------

Co-authored-by: afercia <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
4 people authored Dec 13, 2024
1 parent 750c8e4 commit 0b1a6b6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ export function EntitiesSavedStatesExtensible( {
'description'
);

const selectItemsToSaveDescription = !! dirtyEntityRecords.length
? __( 'Select the items you want to save.' )
: undefined;

return (
<div
ref={ renderDialog ? saveDialogRef : undefined }
Expand Down Expand Up @@ -180,7 +184,7 @@ export function EntitiesSavedStatesExtensible( {
),
{ strong: <strong /> }
)
: __( 'Select the items you want to save.' ) }
: selectItemsToSaveDescription }
</p>
</div>

Expand Down

1 comment on commit 0b1a6b6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 0b1a6b6.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12316770482
📝 Reported issues:

Please sign in to comment.