@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.
- package/bundles/veloceapps-sdk.umd.js +14 -3
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/esm2015/src/components/dialog/dialog.component.js +13 -3
- package/esm2015/src/components/dialog/dialog.types.js +1 -1
- package/esm2015/src/guards/product-unload.guard.js +2 -2
- package/esm2015/src/services/flow-dialog.service.js +2 -1
- package/fesm2015/veloceapps-sdk.js +14 -3
- package/fesm2015/veloceapps-sdk.js.map +1 -1
- package/package.json +1 -1
- package/src/components/dialog/dialog.types.d.ts +1 -0
@@ -55,10 +55,20 @@
|
|
55
55
|
this.config = this.dialogConfig.data.config;
|
56
56
|
}
|
57
57
|
FlowDialogComponent.prototype.cancelHandler = function () {
|
58
|
-
this.
|
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.
|
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()
|
1918
|
+
observable = this.flowDialogService.showUnsavedChangesDialog();
|
1908
1919
|
}
|
1909
1920
|
return observable.pipe(rxjs.map(function (unload) {
|
1910
1921
|
if (unload) {
|