()
| 2657 | ); |
| 2658 | } |
| 2659 | async 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 | } |
| 2686 | async function onCancelInDialog() { |
| 2687 | if (_isNewDataset && _isFormInDialogSelector !== null) { |
| 2688 |
nothing calls this directly
no test coverage detected