individual userprofile issues fixed
This commit is contained in:
parent
691ad3f41d
commit
b0e2c4ad9b
@ -362,7 +362,7 @@ export class AwsService {
|
|||||||
|
|
||||||
cognitoidentityserviceprovider.adminCreateUser(params, (
|
cognitoidentityserviceprovider.adminCreateUser(params, (
|
||||||
err,
|
err,
|
||||||
data
|
data
|
||||||
) => {
|
) => {
|
||||||
if (err) { alert(err.message); }
|
if (err) { alert(err.message); }
|
||||||
// an error occurred
|
// an error occurred
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<div class="sidebar-container ">
|
<div class="sidebar-container ">
|
||||||
<div class="branding text-center">
|
<div class="branding text-center">
|
||||||
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
|
<!-- <h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> OPTIMA</span>
|
||||||
</h2> -->
|
</h2> -->
|
||||||
<h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> {{userDep}} </span>
|
<h2><i class="fa fa-superpowers" aria-hidden="true"></i> <span> {{userDep}} </span>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
<span dividerColor="primary" class="ml-xs mr-xs" *ngIf="profileaccess">
|
<span dividerColor="primary" class="ml-xs mr-xs" *ngIf="profileaccess">
|
||||||
<img [src]="profileurl" style="width: 17%;height: 50%;border-radius: 50%;"></span>
|
<img [src]="profileurl" style="width: 17%;height: 50%;border-radius: 50%;"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-card-title>Account Details</mat-card-title><hr/><br/>
|
<mat-card-title>Account Details</mat-card-title><hr/><br/>
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
||||||
|
|||||||
@ -262,7 +262,7 @@ this.loader = true;
|
|||||||
|
|
||||||
if (this.users.localUserId != '' && this.users.localUserId != null && this.users.localUserId !== undefined) {
|
if (this.users.localUserId != '' && this.users.localUserId != null && this.users.localUserId !== undefined) {
|
||||||
this.usersData = this.users.localUserId;
|
this.usersData = this.users.localUserId;
|
||||||
|
|
||||||
this.users.entityType().subscribe(res => {
|
this.users.entityType().subscribe(res => {
|
||||||
this.types = res;
|
this.types = res;
|
||||||
if (this.types.status == 200) {
|
if (this.types.status == 200) {
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export class UserListComponent implements OnInit {
|
|||||||
//console.log(session.idToken.payload["cognito:groups"]);
|
//console.log(session.idToken.payload["cognito:groups"]);
|
||||||
let userGroup = session.idToken.payload["cognito:groups"].filter(
|
let userGroup = session.idToken.payload["cognito:groups"].filter(
|
||||||
usergroup => usergroup == "ADMIN"
|
usergroup => usergroup == "ADMIN"
|
||||||
)[0];
|
)[0];
|
||||||
|
|
||||||
if(userGroup == "ADMIN" ){
|
if(userGroup == "ADMIN" ){
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@
|
|||||||
<span><i class="fa fa-calendar"></i>{{userDetails.addressline3}} {{userDetails.state_name}} - {{userDetails.pincode}}</span>
|
<span><i class="fa fa-calendar"></i>{{userDetails.addressline3}} {{userDetails.state_name}} - {{userDetails.pincode}}</span>
|
||||||
<span>{{userDetails.createdon | date:'dd MMM yyyy'}}</span> -->
|
<span>{{userDetails.createdon | date:'dd MMM yyyy'}}</span> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.gt-sm="50" fxFlex.gt-xs="50" fxFlex="100" class="mt-1">
|
<div fxFlex.gt-sm="50" fxFlex.gt-xs="50" fxFlex="100" class="mt-1">
|
||||||
<div class="profile-content">
|
<div class="profile-content">
|
||||||
<div class="profile-head">
|
<div class="profile-head">
|
||||||
|
|||||||
@ -76,7 +76,7 @@ export class UserProfileComponent implements OnInit {
|
|||||||
if(this.profileurl.dataStatus == true){
|
if(this.profileurl.dataStatus == true){
|
||||||
|
|
||||||
this.profileurl = this.profileurl.records;
|
this.profileurl = this.profileurl.records;
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user