Merge pull request #27053 from overleaf/dp-review-panel-disabled

Disable review panel tab when it cannot be opened in new editor

GitOrigin-RevId: 586ef06bc7cd27efdec6cb7ccc287f4ad41e4da5
This commit is contained in:
David
2025-07-15 09:58:18 +01:00
committed by Copybot
parent db6302e501
commit ce56a79603
2 changed files with 6 additions and 1 deletions
@@ -142,6 +142,7 @@ export const RailLayout = () => {
title: t('review_panel'),
component: null,
hide: !features.trackChangesVisible,
disabled: view !== 'editor',
},
{
key: 'chat',
@@ -160,7 +161,7 @@ export const RailLayout = () => {
disabled: errorLogsDisabled,
},
],
[t, features.trackChangesVisible, newErrorlogs, errorLogsDisabled]
[t, features.trackChangesVisible, newErrorlogs, errorLogsDisabled, view]
)
const railActions: RailAction[] = useMemo(
@@ -65,6 +65,10 @@ body {
position: relative;
overflow: visible;
&.disabled {
color: var(--content-disabled-themed);
}
&:visited,
&:focus {
color: var(--ide-rail-color);