Skip to content

Commit 01df16f

Browse files
t-hamanoMamaduka
authored andcommitted
Notes: always open histroy sidebar if note is resolved (#72708)
Co-authored-by: t-hamano <wildworks@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
1 parent 6db6a7b commit 01df16f

File tree

1 file changed

+3
-2
lines changed
  • packages/editor/src/components/collab-sidebar

1 file changed

+3
-2
lines changed

packages/editor/src/components/collab-sidebar/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ function NotesSidebar( { postId, mode } ) {
128128
const prevArea = await getActiveComplementaryArea( 'core' );
129129
const activeNotesArea = SIDEBARS.find( ( name ) => name === prevArea );
130130

131-
// If the notes sidebar is not already active, enable the floating sidebar.
132-
if ( ! activeNotesArea ) {
131+
if ( currentThread?.status === 'approved' ) {
132+
enableComplementaryArea( 'core', collabHistorySidebarName );
133+
} else if ( ! activeNotesArea ) {
133134
enableComplementaryArea(
134135
'core',
135136
showFloatingSidebar

0 commit comments

Comments
 (0)