(sectionName, specRoles)
| 476 | return options; |
| 477 | } |
| 478 | function optionsForReference(sectionName, specRoles) { |
| 479 | const options = specRoles.map((specRole)=>{ |
| 480 | const option = { |
| 481 | key: `role:${specRole.role}`, |
| 482 | text: aliasLabels[specRole.role], |
| 483 | data: specRole.role |
| 484 | }; |
| 485 | return option; |
| 486 | }).sort((a, b)=>a.text.localeCompare(b.text)); |
| 487 | if (options.length) { |
| 488 | const option = { |
| 489 | key: sectionName, |
| 490 | text: sectionName, |
| 491 | itemType: (0, _base.base).fluentUI.DropdownMenuItemType.Header |
| 492 | }; |
| 493 | options.unshift(option); |
| 494 | } |
| 495 | return options; |
| 496 | } |
| 497 | function selectFirst(options) { |
| 498 | for(let i = 0; i < options.length; i++){ |
| 499 | if (options[i].itemType === (0, _base.base).fluentUI.DropdownMenuItemType.Header) continue; |
no outgoing calls
no test coverage detected