@veloceapps/sdk 6.0.0-81 → 6.0.0-83

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.
@@ -55,10 +55,20 @@
55
55
  this.config = this.dialogConfig.data.config;
56
56
  }
57
57
  FlowDialogComponent.prototype.cancelHandler = function () {
58
- this.ref.close();
58
+ if (this.config.oppositeButtonActions) {
59
+ this.ref.close(true);
60
+ }
61
+ else {
62
+ this.ref.close();
63
+ }
59
64
  };
60
65
  FlowDialogComponent.prototype.confirmHandler = function () {
61
- this.ref.close(true);
66
+ if (this.config.oppositeButtonActions) {
67
+ this.ref.close();
68
+ }
69
+ else {
70
+ this.ref.close(true);
71
+ }
62
72
  };
63
73
  return FlowDialogComponent;
64
74
  }());
@@ -975,6 +985,7 @@
975
985
  description: 'Are you sure you want to leave this page and discard your unsaved changes?',
976
986
  primaryButton: 'Keep Editing',
977
987
  secondaryButton: 'Discard Changes',
988
+ oppositeButtonActions: true,
978
989
  });
979
990
  };
980
991
  FlowDialogService.prototype.showReadonlyQuoteSubmitFailureDialog = function () {
@@ -1904,7 +1915,7 @@
1904
1915
  var _this = this;
1905
1916
  var observable = rxjs.of(true);
1906
1917
  if (!this.quoteDraftService.isStandalone && this.configurationService.hasUnsavedChanges) {
1907
- observable = this.flowDialogService.showUnsavedChangesDialog().pipe(rxjs.map(function (confirmed) { return !confirmed; }));
1918
+ observable = this.flowDialogService.showUnsavedChangesDialog();
1908
1919
  }
1909
1920
  return observable.pipe(rxjs.map(function (unload) {
1910
1921
  if (unload) {