()
| 1840 | modal.style.display = 'flex'; |
| 1841 | |
| 1842 | const renderGroupAcl = async () => { |
| 1843 | const bodyEl = document.getElementById('groupAclBody'); |
| 1844 | if (!bodyEl) return; |
| 1845 | bodyEl.textContent = `${t('loading')}…`; |
| 1846 | |
| 1847 | const sourceId = getFolderAccessSourceId(); |
| 1848 | const folders = await getAllFolders(true, sourceId); |
| 1849 | const grants = pickGroupGrantsForSource(__groupsCache[groupName] || {}, sourceId); |
| 1850 | |
| 1851 | bodyEl.textContent = ''; |
| 1852 | const box = document.createElement('div'); |
| 1853 | box.className = 'folder-grants-box'; |
| 1854 | bodyEl.appendChild(box); |
| 1855 | |
| 1856 | renderFolderGrantsUI(groupName, box, ['root', ...folders.filter(f => f !== 'root')], grants); |
| 1857 | box.__grantsFallback = grants; |
| 1858 | }; |
| 1859 | |
| 1860 | await initFolderAccessSourceSelector({ |
| 1861 | rowId: 'groupAclSourceRow', |
no test coverage detected