MCPcopy
hub / github.com/webpack/webpack / _buttonNewPositions

Function _buttonNewPositions

test/configCases/inner-graph/issue-11678/module.js:2570–2582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2568 }
2569}
2570function _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}
2583export async function onEdit() {
2584 if (_isFormInDialog) {
2585 await _showForm(

Callers 1

_showFormButtonsFunction · 0.85

Calls 1

_getNewPositionFormFunction · 0.85

Tested by

no test coverage detected