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.
@@ -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.24";
890
+ this.libVersion = "0.0.25";
885
891
  // this.myIcon = document.getElementById('myIconImg');
886
892
  // this.changeChatType()
887
893
  };