MCPcopy
hub / github.com/webpack/webpack / onEdit

Function onEdit

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

Source from the content-addressed store, hash-verified

2581 return new UiSelectButton(TC.new, "newPosition", btnArray, "caret-1-s");
2582}
2583export async function onEdit() {
2584 if (_isFormInDialog) {
2585 await _showForm(
2586 buttons.STATE.edit,
2587 _isFormInDialogJobPK,
2588 _isFormInDialogSelector
2589 );
2590 } else {
2591 await _showForm(buttons.STATE.edit, _getDataFromSelectedEntry());
2592 }
2593}
2594async function onDelete() {
2595 let selectionCount = 0;
2596 if (_isFormInDialog) {

Callers

nothing calls this directly

Calls 2

_showFormFunction · 0.85

Tested by

no test coverage detected