@veloceapps/sdk 5.0.13-4 → 5.0.13-6
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-core.umd.js +17 -4
- package/bundles/veloceapps-sdk-core.umd.js.map +1 -1
- package/bundles/veloceapps-sdk.umd.js +8 -8
- package/bundles/veloceapps-sdk.umd.js.map +1 -1
- package/core/services/quote-draft.service.d.ts +3 -1
- package/esm2015/core/services/quote-draft.service.js +15 -5
- package/esm2015/src/resolvers/quote.resolver.js +9 -9
- package/fesm2015/veloceapps-sdk-core.js +14 -5
- package/fesm2015/veloceapps-sdk-core.js.map +1 -1
- package/fesm2015/veloceapps-sdk.js +8 -8
- package/fesm2015/veloceapps-sdk.js.map +1 -1
- package/package.json +1 -1
@@ -3086,16 +3086,16 @@
|
|
3086
3086
|
}
|
3087
3087
|
var queryParams = route.queryParams;
|
3088
3088
|
return this.quoteDraftService.init(headerId, queryParams).pipe(rxjs.switchMap(function () { return _this.calculate$(); }), rxjs.tap(function () {
|
3089
|
-
if (_this.quoteDraftService.isStandalone) {
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
_this.
|
3094
|
-
|
3095
|
-
|
3096
|
-
_this.changeNavigation('/cart', route);
|
3089
|
+
if (!_this.quoteDraftService.isStandalone) {
|
3090
|
+
if (_this.accountHasNotAssets()) {
|
3091
|
+
_this.changeNavigation('/empty', route);
|
3092
|
+
}
|
3093
|
+
else if (!_this.quoteDraftService.isInitialized && _this.quoteDraftService.hasAssets) {
|
3094
|
+
_this.changeNavigation('/cart', route);
|
3095
|
+
}
|
3097
3096
|
}
|
3098
3097
|
_this.quoteDraftService.isInitialized = true;
|
3098
|
+
_this.quoteDraftService.hasUnsavedChanges = false;
|
3099
3099
|
}), rxjs.catchError(function (e) {
|
3100
3100
|
var message = e instanceof http.HttpErrorResponse ? e.error.message : e;
|
3101
3101
|
return _this.handleError(route, message);
|