Skip to content

Commit 493b121

Browse files
authored
fix(ui): hide dot menu in read-only mode for locked documents (#8342)
1 parent 55afbe5 commit 493b121

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/ui/src/elements/DocumentControls/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export const DocumentControls: React.FC<{
243243
</Button>
244244
)}
245245
</div>
246-
{showDotMenu && (
246+
{showDotMenu && !readOnlyForIncomingUser && (
247247
<Popup
248248
button={
249249
<div className={`${baseClass}__dots`}>

test/locked-documents/e2e.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ describe('locked documents', () => {
391391
// save buttons should be readOnly / disabled
392392
await expect(page.locator('#action-save-draft')).toBeDisabled()
393393
await expect(page.locator('#action-save')).toBeDisabled()
394+
await expect(page.locator('.doc-controls__dots')).toBeHidden()
394395

395396
// fields should be readOnly / disabled
396397
await expect(page.locator('#field-text')).toBeDisabled()

0 commit comments

Comments
 (0)