Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/access-control-modal/AccessControlModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default class AccessControlModal extends DialogComponent<void> {
return html`
<div class="access-control-mixed-policy-warning" role="alert">
<strong>This container has different access settings for the folder and its contents.</strong>
<span>Changing this mixed policy is an advanced feature. You can still change access for the folder or its contents separately below.</span>
<span>Currently you can only add and/or update access on the folder and contents combined.</span>
</div>
`
}
Expand Down
2 changes: 1 addition & 1 deletion test/components/access-control-modal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ describe('AccessControlModal submit', () => {
const warning = element.shadowRoot.querySelector('.access-control-mixed-policy-warning')
expect(warning?.getAttribute('role')).toBe('alert')
expect(warning?.textContent).toContain('different access settings for the folder and its contents')
expect(warning?.textContent).toContain('You can still change access for the folder or its contents separately below.')
expect(warning?.textContent).toContain('Currently you can only add and/or update access on the folder and contents combined.')
expect(element.shadowRoot.querySelector('solid-ui-access-control-add-access')?.disabled).toBe(true)
expect(element.shadowRoot.querySelector('solid-ui-access-control-shared-access')?.disabled).toBe(true)
expect(element.shadowRoot.querySelector('solid-ui-access-control-general-access')?.disabled).toBe(true)
Expand Down
Loading