Skip to content

Commit 49a1a8f

Browse files
committed
change message when a user has multiple sharing types on a container resource
1 parent d8daf98 commit 49a1a8f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/components/access-control-modal/AccessControlModal.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ export default class AccessControlModal extends DialogComponent<void> {
404404

405405
return html`
406406
<div class="access-control-mixed-policy-warning" role="alert">
407-
<strong>This container has different access settings for the folder and its contents.</strong>
408-
<span>Changing this mixed policy is an advanced feature. You can still change access for the folder or its contents separately below.</span>
407+
<strong>This container has different access settings in addition to the folder and its contents access shown below.</strong>
408+
<span>Currently you can only add and/or update access on the folder and contents combined.</span>
409409
</div>
410410
`
411411
}

‎test/components/access-control-modal.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,8 +1686,8 @@ describe('AccessControlModal submit', () => {
16861686

16871687
const warning = element.shadowRoot.querySelector('.access-control-mixed-policy-warning')
16881688
expect(warning?.getAttribute('role')).toBe('alert')
1689-
expect(warning?.textContent).toContain('different access settings for the folder and its contents')
1690-
expect(warning?.textContent).toContain('You can still change access for the folder or its contents separately below.')
1689+
expect(warning?.textContent).toContain('different access settings in addition to the folder and its contents access shown below')
1690+
expect(warning?.textContent).toContain('Currently you can only add and/or update access on the folder and contents combined.')
16911691
expect(element.shadowRoot.querySelector('solid-ui-access-control-add-access')?.disabled).toBe(true)
16921692
expect(element.shadowRoot.querySelector('solid-ui-access-control-shared-access')?.disabled).toBe(true)
16931693
expect(element.shadowRoot.querySelector('solid-ui-access-control-general-access')?.disabled).toBe(true)

0 commit comments

Comments
 (0)