buildingproduct-library 0.2.80 → 0.2.81
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-0.2.80.tgz → buildingproduct-library-0.2.81.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +29 -3
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/account-dropdown/account-dropdown.component.js +3 -2
- package/esm2015/lib/my-team/my-team.component.js +28 -3
- package/fesm2015/buildingproduct-library.js +29 -3
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/lib/my-team/my-team.component.d.ts +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -984,7 +984,6 @@
|
|
|
984
984
|
return __awaiter(this, void 0, void 0, function () {
|
|
985
985
|
var _this = this;
|
|
986
986
|
return __generator(this, function (_c) {
|
|
987
|
-
// const isLoaded = await this.fiUserAccountDetailsService.isEnviornmentLoaded();
|
|
988
987
|
this.selecteduserData = JSON.parse(localStorage.getItem('selectedAccout') || '{}');
|
|
989
988
|
this.fiUserAccountDetailsService.getUserAccount().subscribe(function (user) {
|
|
990
989
|
var _a, _b;
|
|
@@ -999,6 +998,8 @@
|
|
|
999
998
|
_this.accounts = data;
|
|
1000
999
|
_this.getAccountsData();
|
|
1001
1000
|
}
|
|
1001
|
+
}, function (error) {
|
|
1002
|
+
window.location.reload();
|
|
1002
1003
|
});
|
|
1003
1004
|
}
|
|
1004
1005
|
else {
|
|
@@ -6112,8 +6113,33 @@
|
|
|
6112
6113
|
this.createUpdateToast = false;
|
|
6113
6114
|
};
|
|
6114
6115
|
MyTeamComponent.prototype.findOrgUnit = function (data) {
|
|
6115
|
-
var _a
|
|
6116
|
-
|
|
6116
|
+
var _a;
|
|
6117
|
+
var name = '';
|
|
6118
|
+
(_a = this.orgUnits) === null || _a === void 0 ? void 0 : _a.forEach(function (ele) {
|
|
6119
|
+
var _a;
|
|
6120
|
+
if (ele.uid == data.uid) {
|
|
6121
|
+
name = ele.name;
|
|
6122
|
+
return;
|
|
6123
|
+
}
|
|
6124
|
+
else {
|
|
6125
|
+
(_a = ele === null || ele === void 0 ? void 0 : ele.children) === null || _a === void 0 ? void 0 : _a.forEach(function (child) {
|
|
6126
|
+
var _a;
|
|
6127
|
+
if (child.uid == data.uid) {
|
|
6128
|
+
name = child.name;
|
|
6129
|
+
return child.name;
|
|
6130
|
+
}
|
|
6131
|
+
else {
|
|
6132
|
+
(_a = child === null || child === void 0 ? void 0 : child.children) === null || _a === void 0 ? void 0 : _a.forEach(function (children) {
|
|
6133
|
+
if (children.uid == data.uid) {
|
|
6134
|
+
name = children.name;
|
|
6135
|
+
return;
|
|
6136
|
+
}
|
|
6137
|
+
});
|
|
6138
|
+
}
|
|
6139
|
+
});
|
|
6140
|
+
}
|
|
6141
|
+
});
|
|
6142
|
+
return name;
|
|
6117
6143
|
};
|
|
6118
6144
|
MyTeamComponent.prototype.checkOrgUnit = function (event, data) {
|
|
6119
6145
|
if (event.currentTarget.checked) {
|