Skip to content

Commit

Permalink
Merge pull request #79 from sunbird-cb/secure-email-fix
Browse files Browse the repository at this point in the history
admin user table popup email fixed
  • Loading branch information
nitinraj-tarento authored Mar 10, 2023
2 parents cad9fbd + 8fe3472 commit c8ce26e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { MatSort } from '@angular/material/sort'
import * as _ from 'lodash'
import { ITableData, IColums } from '../interface/interfaces'
import { UserViewPopUpService } from './ui-user-table-pop-up.services'
import { ProfileV2UtillService } from '../../../routes/home/services/home-utill.service'

interface IUser { fullname: string; email: string, userId: string }

Expand Down Expand Up @@ -37,7 +38,7 @@ export class UIUserTablePopUpComponent implements OnInit, AfterViewInit, OnChang
@ViewChild(MatSort, { static: true }) sort?: MatSort
selection = new SelectionModel<any>(true, [])

constructor(private userViewPopUpService: UserViewPopUpService) {
constructor(private userViewPopUpService: UserViewPopUpService, private profileUtilSvc: ProfileV2UtillService) {
this.dataSource = new MatTableDataSource<any>()
this.actionsClick = new EventEmitter()
this.clicked = new EventEmitter()
Expand Down Expand Up @@ -110,7 +111,7 @@ export class UIUserTablePopUpComponent implements OnInit, AfterViewInit, OnChang
const obj: IUser = {
userId: users.id,
fullname: `${users.firstName} ${users.lastName}`,
email: users.profileDetails.personalDetails.primaryEmail,
email: this.profileUtilSvc.emailTransform(users.profileDetails.personalDetails.primaryEmail),
}
this.dataSource.data.push(obj)
this.dataSource.data = this.dataSource.data.slice()
Expand Down

0 comments on commit c8ce26e

Please sign in to comment.