Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update packages/editor/src/components/collab-sidebar/comments.js
  • Loading branch information
t-hamano committed Nov 14, 2025
commit a38338839d3c8b1b03b9ad98fdce61fae4214243
15 changes: 7 additions & 8 deletions packages/editor/src/components/collab-sidebar/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,14 +775,13 @@ const CommentBoard = ( {
: [];

let deleteConfirmMessage = __(
'Are you sure you want to delete this note?'
);

// When deleting a top level note, descendants will also be deleted.
if ( thread.parent === 0 ) {
deleteConfirmMessage +=
' ' + __( "This will also delete all of this note's replies." );
}
const deleteConfirmMessage =
// When deleting a top level note, descendants will also be deleted.
thread.parent === 0
? __(
"Are you sure you want to delete this note? This will also delete all of this note's replies."
)
: __( 'Are you sure you want to delete this reply?' );

return (
<VStack
Expand Down