()
| 546 | } |
| 547 | |
| 548 | async function loadRoles() { |
| 549 | const data = await api("/api/roles"); |
| 550 | state.roles = data.roles || []; |
| 551 | renderRoles(state.roles); |
| 552 | } |
| 553 | |
| 554 | async function loadSourceOptions() { |
| 555 | if (state.sourceOptionsLoaded) return; |
no test coverage detected