mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #20517 from overleaf/dp-overview-edit-actions
Don't allow tracked changes to be edited in the overview tab in new review panel GitOrigin-RevId: 132771c4105096034bf58bc3d4a7ba23c3d088b7
This commit is contained in:
parent
35afb713a3
commit
9d3841a46d
2 changed files with 4 additions and 2 deletions
|
@ -20,7 +20,8 @@ export const ReviewPanelChange = memo<{
|
|||
change: Change<EditOperation>
|
||||
aggregate?: Change<DeleteOperation>
|
||||
top?: number
|
||||
}>(({ change, aggregate, top }) => {
|
||||
editable?: boolean
|
||||
}>(({ change, aggregate, top, editable = true }) => {
|
||||
const { t } = useTranslation()
|
||||
const { acceptChanges, rejectChanges } = useRangesActionsContext()
|
||||
const permissions = usePermissionsContext()
|
||||
|
@ -56,7 +57,7 @@ export const ReviewPanelChange = memo<{
|
|||
{formatTimeBasedOnYear(change.metadata?.ts)}
|
||||
</div>
|
||||
</div>
|
||||
{permissions.write && (
|
||||
{editable && permissions.write && (
|
||||
<div className="review-panel-entry-actions">
|
||||
<Tooltip
|
||||
id="accept-change"
|
||||
|
|
|
@ -81,6 +81,7 @@ export const ReviewPanelOverviewFile: FC<{
|
|||
key={change.id}
|
||||
change={change}
|
||||
aggregate={aggregates.get(change.id)}
|
||||
editable={false}
|
||||
/>
|
||||
))}
|
||||
|
||||
|
|
Loading…
Reference in a new issue