MCPcopy
hub / github.com/webpack/webpack / reOpenTaskButton

Function reOpenTaskButton

test/configCases/inner-graph/issue-11678/module.js:2551–2569  ·  view source on GitHub ↗
(positionTypeId, event)

Source from the content-addressed store, hash-verified

2549 }
2550}
2551function reOpenTaskButton(positionTypeId, event) {
2552 switch (_getModuleName()) {
2553
2554 case ModuleNameEnum.JOB:
2555
2556 if (positionTypeId !== POSITIONTYPES.SUBTOTAL) {
2557 formHelper.addButtonReOpenTask(
2558 _getModuleName(),
2559 _staticData,
2560 _formObject,
2561 _formData.task.taskID,
2562 event
2563 );
2564 }
2565 break;
2566 default:
2567 break;
2568 }
2569}
2570function _buttonNewPositions() {
2571 const serviceTypes = _staticData.lists.listPosTypes.filter(e => e.isUsed);
2572 const btnArray = serviceTypes.map((obj, i) => {

Callers 1

_showFormFunction · 0.85

Calls 1

_getModuleNameFunction · 0.85

Tested by

no test coverage detected