@veloceapps/sdk 6.0.0-82 → 6.0.0-84
Sign up to get free protection for your applications and to get access to all the features.
- 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) {
|