fix(ui): hide dot menu in read-only mode for locked documents (#8342)
This commit is contained in:
@@ -243,7 +243,7 @@ export const DocumentControls: React.FC<{
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{showDotMenu && (
|
{showDotMenu && !readOnlyForIncomingUser && (
|
||||||
<Popup
|
<Popup
|
||||||
button={
|
button={
|
||||||
<div className={`${baseClass}__dots`}>
|
<div className={`${baseClass}__dots`}>
|
||||||
|
|||||||
@@ -391,6 +391,7 @@ describe('locked documents', () => {
|
|||||||
// save buttons should be readOnly / disabled
|
// save buttons should be readOnly / disabled
|
||||||
await expect(page.locator('#action-save-draft')).toBeDisabled()
|
await expect(page.locator('#action-save-draft')).toBeDisabled()
|
||||||
await expect(page.locator('#action-save')).toBeDisabled()
|
await expect(page.locator('#action-save')).toBeDisabled()
|
||||||
|
await expect(page.locator('.doc-controls__dots')).toBeHidden()
|
||||||
|
|
||||||
// fields should be readOnly / disabled
|
// fields should be readOnly / disabled
|
||||||
await expect(page.locator('#field-text')).toBeDisabled()
|
await expect(page.locator('#field-text')).toBeDisabled()
|
||||||
|
|||||||
Reference in New Issue
Block a user