cloud-ide-element 1.0.34 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5203,7 +5203,10 @@ class ConfirmationService {
5203
5203
  const request = this.currentRequest();
5204
5204
  if (!request)
5205
5205
  return;
5206
- request.resolve(data !== undefined ? data : true);
5206
+ // Always resolve with true for confirmation, unless custom data is explicitly provided
5207
+ const resolvedValue = data !== undefined ? data : true;
5208
+ console.log('🔔 Confirming request with value:', resolvedValue);
5209
+ request.resolve(resolvedValue);
5207
5210
  this.removeCurrentRequest();
5208
5211
  }
5209
5212
  cancelCurrentRequest() {
@@ -5495,9 +5498,10 @@ class CideEleConfirmationModalComponent {
5495
5498
  this.confirmationService.cancelCurrentRequest();
5496
5499
  }
5497
5500
  onConfirm() {
5498
- // If there's custom data, pass it to the confirmation
5501
+ // If there's custom data, pass it to the confirmation, otherwise pass true
5499
5502
  const data = this.customData();
5500
- this.confirmationService.confirmCurrentRequest(data);
5503
+ console.log('🔔 Modal onConfirm called with customData:', data);
5504
+ this.confirmationService.confirmCurrentRequest(data !== null ? data : true);
5501
5505
  this.customData.set(null); // Reset custom data
5502
5506
  }
5503
5507
  // Method to update custom data (called by custom templates)