(portals)
| 560 | } |
| 561 | |
| 562 | async function saveAllPortals(portals) { |
| 563 | const res = await fetch('/api/pro/portals/save.php', { |
| 564 | method: 'POST', |
| 565 | credentials: 'include', |
| 566 | headers: { |
| 567 | 'Content-Type': 'application/json', |
| 568 | 'X-CSRF-Token': window.csrfToken || '' |
| 569 | }, |
| 570 | body: JSON.stringify({ portals }) |
| 571 | }); |
| 572 | return await safeJson(res); |
| 573 | } |
| 574 | |
| 575 | let __portalsCache = {}; |
| 576 | // Shared folder list for portal folder picker (reuses getFolderList.php like folderManager.js) |
no test coverage detected