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