buildingproduct-library 1.2.0 → 1.2.1
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/{buildingproduct-library-1.2.0.tgz → buildingproduct-library-1.2.1.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +7 -9
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/custom-mini-cart/custom-mini-cart.component.js +7 -9
- package/fesm2015/buildingproduct-library.js +6 -8
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -1951,7 +1951,7 @@
|
|
|
1951
1951
|
}
|
|
1952
1952
|
CustomMiniCartComponent.prototype.ngOnInit = function () {
|
|
1953
1953
|
return __awaiter(this, void 0, void 0, function () {
|
|
1954
|
-
var _u;
|
|
1954
|
+
var _u, cartLoaded;
|
|
1955
1955
|
var _this = this;
|
|
1956
1956
|
return __generator(this, function (_v) {
|
|
1957
1957
|
switch (_v.label) {
|
|
@@ -1962,6 +1962,11 @@
|
|
|
1962
1962
|
_u.isCartPermission =
|
|
1963
1963
|
_v.sent();
|
|
1964
1964
|
this.getCartId();
|
|
1965
|
+
cartLoaded = sessionStorage.getItem('isCartLoaded');
|
|
1966
|
+
if (!cartLoaded) {
|
|
1967
|
+
sessionStorage.setItem('isCartLoaded', 'true');
|
|
1968
|
+
window.location.reload();
|
|
1969
|
+
}
|
|
1965
1970
|
this.showWaitCursor.next(true);
|
|
1966
1971
|
this.router.events.subscribe(function (val) {
|
|
1967
1972
|
if (window.location.pathname.includes("mylist")) {
|
|
@@ -1972,14 +1977,7 @@
|
|
|
1972
1977
|
}
|
|
1973
1978
|
_this.ref.markForCheck();
|
|
1974
1979
|
});
|
|
1975
|
-
this.
|
|
1976
|
-
if (isLoaded) {
|
|
1977
|
-
setTimeout(function () {
|
|
1978
|
-
_this.loadFirstCartData();
|
|
1979
|
-
}, 1000);
|
|
1980
|
-
_this.getCartData();
|
|
1981
|
-
}
|
|
1982
|
-
});
|
|
1980
|
+
this.getCartData();
|
|
1983
1981
|
this.cmsService
|
|
1984
1982
|
.getComponentData("ContactUsComponent")
|
|
1985
1983
|
.subscribe(function (data) { });
|