()
| 2568 | } |
| 2569 | } |
| 2570 | function _buttonNewPositions() { |
| 2571 | const serviceTypes = _staticData.lists.listPosTypes.filter(e => e.isUsed); |
| 2572 | const btnArray = serviceTypes.map((obj, i) => { |
| 2573 | return { |
| 2574 | rowId: "addPosition" + i, |
| 2575 | rowText: obj.name, |
| 2576 | rowListener: async function () { |
| 2577 | await _getNewPositionForm(obj.id); |
| 2578 | } |
| 2579 | }; |
| 2580 | }); |
| 2581 | return new UiSelectButton(TC.new, "newPosition", btnArray, "caret-1-s"); |
| 2582 | } |
| 2583 | export async function onEdit() { |
| 2584 | if (_isFormInDialog) { |
| 2585 | await _showForm( |
no test coverage detected