MCPcopy
hub / github.com/webpack/webpack / onCancel

Function onCancel

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

Source from the content-addressed store, hash-verified

2657 );
2658}
2659async function onCancel() {
2660 triggerSelectionChangeEvent = true;
2661 if (
2662 !_formObject.valuesAreEqualWithMemorizedValues() &&
2663 getSession().userPreferences.notifyCancelChanges
2664 ) {
2665 const ok = await confirmDialog(pageTC.dialogTextConfirmCancel);
2666 if (ok) {
2667 if (_isFormInDialog) {
2668 await onCancelInDialog();
2669 } else {
2670 await _resetDetails();
2671 }
2672 } else {
2673 if (prevRows !== null) {
2674 triggerSelectionChangeEvent = false;
2675 _tableObject.setSelection(prevRows);
2676 }
2677 }
2678 } else {
2679 if (_isFormInDialog) {
2680 await onCancelInDialog();
2681 } else {
2682 await _resetDetails();
2683 }
2684 }
2685}
2686async function onCancelInDialog() {
2687 if (_isNewDataset && _isFormInDialogSelector !== null) {
2688

Callers

nothing calls this directly

Calls 2

onCancelInDialogFunction · 0.85
_resetDetailsFunction · 0.85

Tested by

no test coverage detected