principal-dashboard-lib-v2 0.0.24 → 0.0.25
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/principal-dashboard-lib-v2.umd.js +8 -2
- package/bundles/principal-dashboard-lib-v2.umd.js.map +1 -1
- package/bundles/principal-dashboard-lib-v2.umd.min.js +1 -1
- package/bundles/principal-dashboard-lib-v2.umd.min.js.map +1 -1
- package/esm2015/lib/chartheader/chartheader.component.js +2 -2
- package/esm2015/lib/principal-dashboard-lib-v2.service.js +8 -2
- package/fesm2015/principal-dashboard-lib-v2.js +8 -2
- package/fesm2015/principal-dashboard-lib-v2.js.map +1 -1
- package/lib/principal-dashboard-lib-v2.service.d.ts +1 -0
- package/package.json +1 -1
- package/principal-dashboard-lib-v2.metadata.json +1 -1
|
@@ -443,6 +443,12 @@
|
|
|
443
443
|
PrincipalDashboardLibV2Service.prototype.uniq = function (a) {
|
|
444
444
|
return Array.from(new Set(a));
|
|
445
445
|
};
|
|
446
|
+
PrincipalDashboardLibV2Service.prototype.getName = function (user) {
|
|
447
|
+
if (/School Admin/gm.exec(user.role)) {
|
|
448
|
+
return "Support Admin";
|
|
449
|
+
}
|
|
450
|
+
return user.fullName;
|
|
451
|
+
};
|
|
446
452
|
PrincipalDashboardLibV2Service.prototype.allUserChartData = function () {
|
|
447
453
|
var dataTableforChart = new Array();
|
|
448
454
|
dataTableforChart = [];
|
|
@@ -459,7 +465,7 @@
|
|
|
459
465
|
}
|
|
460
466
|
for (var i = 0; i < this.usersMetaData.length; i++) {
|
|
461
467
|
myID = this.usersMetaData[i].userId;
|
|
462
|
-
inActiveuserName = this.usersMetaData[i].userName;
|
|
468
|
+
inActiveuserName = this.getName(this.usersMetaData[i].userName);
|
|
463
469
|
//if(inActiveuserName === undefined)
|
|
464
470
|
{
|
|
465
471
|
console.log("alluser-1->>", inActiveuserName);
|
|
@@ -881,7 +887,7 @@
|
|
|
881
887
|
this.isChartView = true;
|
|
882
888
|
}
|
|
883
889
|
ChartheaderComponent.prototype.ngOnInit = function () {
|
|
884
|
-
this.libVersion = "0.0.
|
|
890
|
+
this.libVersion = "0.0.25";
|
|
885
891
|
// this.myIcon = document.getElementById('myIconImg');
|
|
886
892
|
// this.changeChatType()
|
|
887
893
|
};
|