User Management Change and PD Team Management by Sriram
This commit is contained in:
parent
73b7c5209b
commit
30073db984
46
ng6-seed/package-lock.json
generated
46
ng6-seed/package-lock.json
generated
@ -4273,8 +4273,7 @@
|
|||||||
"ansi-regex": {
|
"ansi-regex": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"aproba": {
|
"aproba": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
@ -4295,14 +4294,12 @@
|
|||||||
"balanced-match": {
|
"balanced-match": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"brace-expansion": {
|
"brace-expansion": {
|
||||||
"version": "1.1.11",
|
"version": "1.1.11",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"balanced-match": "^1.0.0",
|
"balanced-match": "^1.0.0",
|
||||||
"concat-map": "0.0.1"
|
"concat-map": "0.0.1"
|
||||||
@ -4317,20 +4314,17 @@
|
|||||||
"code-point-at": {
|
"code-point-at": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"concat-map": {
|
"concat-map": {
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"console-control-strings": {
|
"console-control-strings": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"core-util-is": {
|
"core-util-is": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
@ -4447,8 +4441,7 @@
|
|||||||
"inherits": {
|
"inherits": {
|
||||||
"version": "2.0.3",
|
"version": "2.0.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"ini": {
|
"ini": {
|
||||||
"version": "1.3.5",
|
"version": "1.3.5",
|
||||||
@ -4460,7 +4453,6 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"number-is-nan": "^1.0.0"
|
"number-is-nan": "^1.0.0"
|
||||||
}
|
}
|
||||||
@ -4475,7 +4467,6 @@
|
|||||||
"version": "3.0.4",
|
"version": "3.0.4",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"brace-expansion": "^1.1.7"
|
"brace-expansion": "^1.1.7"
|
||||||
}
|
}
|
||||||
@ -4483,14 +4474,12 @@
|
|||||||
"minimist": {
|
"minimist": {
|
||||||
"version": "0.0.8",
|
"version": "0.0.8",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"minipass": {
|
"minipass": {
|
||||||
"version": "2.2.4",
|
"version": "2.2.4",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"safe-buffer": "^5.1.1",
|
"safe-buffer": "^5.1.1",
|
||||||
"yallist": "^3.0.0"
|
"yallist": "^3.0.0"
|
||||||
@ -4509,7 +4498,6 @@
|
|||||||
"version": "0.5.1",
|
"version": "0.5.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"minimist": "0.0.8"
|
"minimist": "0.0.8"
|
||||||
}
|
}
|
||||||
@ -4590,8 +4578,7 @@
|
|||||||
"number-is-nan": {
|
"number-is-nan": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"object-assign": {
|
"object-assign": {
|
||||||
"version": "4.1.1",
|
"version": "4.1.1",
|
||||||
@ -4603,7 +4590,6 @@
|
|||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"wrappy": "1"
|
"wrappy": "1"
|
||||||
}
|
}
|
||||||
@ -4689,8 +4675,7 @@
|
|||||||
"safe-buffer": {
|
"safe-buffer": {
|
||||||
"version": "5.1.1",
|
"version": "5.1.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"safer-buffer": {
|
"safer-buffer": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
@ -4726,7 +4711,6 @@
|
|||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"code-point-at": "^1.0.0",
|
"code-point-at": "^1.0.0",
|
||||||
"is-fullwidth-code-point": "^1.0.0",
|
"is-fullwidth-code-point": "^1.0.0",
|
||||||
@ -4746,7 +4730,6 @@
|
|||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansi-regex": "^2.0.0"
|
"ansi-regex": "^2.0.0"
|
||||||
}
|
}
|
||||||
@ -4790,14 +4773,12 @@
|
|||||||
"wrappy": {
|
"wrappy": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"yallist": {
|
"yallist": {
|
||||||
"version": "3.0.2",
|
"version": "3.0.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true
|
||||||
"optional": true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -9991,6 +9972,11 @@
|
|||||||
"has-flag": "^3.0.0"
|
"has-flag": "^3.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"sweetalert2": {
|
||||||
|
"version": "7.28.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-7.28.4.tgz",
|
||||||
|
"integrity": "sha512-HEAfIAPactjB8CvgsJClxT+6wv2OGh/KkgvgJ8xR28uAXtx9BUQAlws1mruaS7Jzn8gIt6esx4BEZLaZSGvBZw=="
|
||||||
|
},
|
||||||
"symbol-observable": {
|
"symbol-observable": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz",
|
||||||
|
|||||||
@ -60,6 +60,7 @@
|
|||||||
"screenfull": "^3.2.2",
|
"screenfull": "^3.2.2",
|
||||||
"simple-line-icons": "^2.4.1",
|
"simple-line-icons": "^2.4.1",
|
||||||
"sortablejs": "^1.6.0",
|
"sortablejs": "^1.6.0",
|
||||||
|
"sweetalert2": "^7.28.4",
|
||||||
"tether": "^1.4.0",
|
"tether": "^1.4.0",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.26"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -223,12 +223,12 @@ export class AwsService {
|
|||||||
let params: any;
|
let params: any;
|
||||||
if (userGroup == 'ADMIN') {
|
if (userGroup == 'ADMIN') {
|
||||||
console.log(userdata);
|
console.log(userdata);
|
||||||
if (userdata.fk_entity_id == 1) {
|
if (userdata.fk_entity_type_id == 1) {
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
||||||
Username: awsName /* required */
|
Username: awsName /* required */
|
||||||
};
|
};
|
||||||
} else if (userdata.fk_entity_id == 2) {
|
} else if (userdata.fk_entity_type_id == 2) {
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: lender_poolData.UserPoolId, /* required */
|
UserPoolId: lender_poolData.UserPoolId, /* required */
|
||||||
Username: awsName /* required */
|
Username: awsName /* required */
|
||||||
@ -253,7 +253,7 @@ export class AwsService {
|
|||||||
adminenableUser(userdata, awsName) {
|
adminenableUser(userdata, awsName) {
|
||||||
let session:any = this.shared.getAccessToken() || "";
|
let session:any = this.shared.getAccessToken() || "";
|
||||||
// this.getconfig();
|
// this.getconfig();
|
||||||
|
console.log(userdata);
|
||||||
let config = "";
|
let config = "";
|
||||||
AWS.config.region = "ap-south-1";
|
AWS.config.region = "ap-south-1";
|
||||||
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
|
AWS.config.credentials = new AWS.CognitoIdentityCredentials({
|
||||||
@ -271,13 +271,13 @@ export class AwsService {
|
|||||||
//cognitosdata = 7;
|
//cognitosdata = 7;
|
||||||
let params: any;
|
let params: any;
|
||||||
if (userGroup == 'ADMIN') {
|
if (userGroup == 'ADMIN') {
|
||||||
console.log(userdata);
|
|
||||||
if (userdata.fk_entity_id == 1) {
|
if (userdata.fk_entity_type_id == 1) {
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
||||||
Username: awsName /* required */
|
Username: awsName /* required */
|
||||||
};
|
};
|
||||||
} else if (userdata.fk_entity_id == 2) {
|
} else if (userdata.fk_entity_type_id == 2) {
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: lender_poolData.UserPoolId, /* required */
|
UserPoolId: lender_poolData.UserPoolId, /* required */
|
||||||
Username: awsName /* required */
|
Username: awsName /* required */
|
||||||
@ -308,7 +308,7 @@ export class AwsService {
|
|||||||
)[0];
|
)[0];
|
||||||
// (userGroup);
|
// (userGroup);
|
||||||
if (userGroup == "ADMIN") {
|
if (userGroup == "ADMIN") {
|
||||||
if (userData.type.entity_type_id == 1) {
|
if (userData.type.fk_entity_type_id == 1) {
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: sineedgedev_poolData.UserPoolId /* required */,
|
UserPoolId: sineedgedev_poolData.UserPoolId /* required */,
|
||||||
Username: userData.email /* required */,
|
Username: userData.email /* required */,
|
||||||
@ -331,7 +331,7 @@ export class AwsService {
|
|||||||
/* more items */
|
/* more items */
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
} else if (userData.type.entity_type_id == 2) {
|
} else if (userData.type.fk_entity_type_id == 2) {
|
||||||
console.log(2);
|
console.log(2);
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: lender_poolData.UserPoolId /* required */,
|
UserPoolId: lender_poolData.UserPoolId /* required */,
|
||||||
@ -355,7 +355,7 @@ export class AwsService {
|
|||||||
/* more items */
|
/* more items */
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
}else if(userData.type.entity_type_id == 3){
|
}else if(userData.type.fk_entity_type_id == 3){
|
||||||
params = {
|
params = {
|
||||||
UserPoolId: vendor_poolData.UserPoolId /* required */,
|
UserPoolId: vendor_poolData.UserPoolId /* required */,
|
||||||
Username: userData.email /* required */,
|
Username: userData.email /* required */,
|
||||||
@ -409,7 +409,7 @@ export class AwsService {
|
|||||||
//console.log(cognitodata);
|
//console.log(cognitodata);
|
||||||
|
|
||||||
|
|
||||||
|
console.log(userData);
|
||||||
this.getconfig();
|
this.getconfig();
|
||||||
|
|
||||||
//let cognitodata = "539bfefa-ae42-4bee-bf79-4b15d1a2af7f";
|
//let cognitodata = "539bfefa-ae42-4bee-bf79-4b15d1a2af7f";
|
||||||
@ -418,13 +418,20 @@ export class AwsService {
|
|||||||
|
|
||||||
let params: any;
|
let params: any;
|
||||||
|
|
||||||
|
if(userData.userid === undefined){
|
||||||
params = {
|
params = {
|
||||||
GroupName: "ADMIN" /* required */,
|
GroupName: "ADMIN" /* required */,
|
||||||
UserPoolId: sineedgedev_poolData.UserPoolId,//"ap-south-1_y7dt3iEaX" /* required */,
|
UserPoolId: sineedgedev_poolData.UserPoolId,//"ap-south-1_y7dt3iEaX" /* required */,
|
||||||
Username: cognitodata.User.Username //'539bfefa-ae42-4bee-bf79-4b15d1a2af7f' /* required */
|
Username: cognitodata.User.Username //'539bfefa-ae42-4bee-bf79-4b15d1a2af7f' /* required */
|
||||||
};
|
};
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
params = {
|
||||||
|
GroupName: "ADMIN" /* required */,
|
||||||
|
UserPoolId: sineedgedev_poolData.UserPoolId,//"ap-south-1_y7dt3iEaX" /* required */,
|
||||||
|
Username: userData.aws_name //'539bfefa-ae42-4bee-bf79-4b15d1a2af7f' /* required */
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
//(params);
|
//(params);
|
||||||
return Observable.create(observe=>{
|
return Observable.create(observe=>{
|
||||||
@ -466,7 +473,7 @@ export class AwsService {
|
|||||||
//cognitosdata = 7;
|
//cognitosdata = 7;
|
||||||
let params:any;
|
let params:any;
|
||||||
if (userGroup == 'ADMIN') {
|
if (userGroup == 'ADMIN') {
|
||||||
if(user.type.entity_type_id ==1){
|
if(user.type.fk_entity_type_id ==1){
|
||||||
params = {
|
params = {
|
||||||
UserAttributes: [ /* required */
|
UserAttributes: [ /* required */
|
||||||
{
|
{
|
||||||
@ -484,7 +491,7 @@ export class AwsService {
|
|||||||
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
||||||
Username: user.email /* required */
|
Username: user.email /* required */
|
||||||
};
|
};
|
||||||
}else if(user.type.entity_type_id ==2){
|
}else if(user.type.fk_entity_type_id ==2){
|
||||||
params = {
|
params = {
|
||||||
UserAttributes: [ /* required */
|
UserAttributes: [ /* required */
|
||||||
{
|
{
|
||||||
@ -558,6 +565,24 @@ export class AwsService {
|
|||||||
UserPoolId: lender_poolData.UserPoolId /* required */,
|
UserPoolId: lender_poolData.UserPoolId /* required */,
|
||||||
Username: userData.aws_name /* required */,
|
Username: userData.aws_name /* required */,
|
||||||
|
|
||||||
|
UserAttributes: [
|
||||||
|
{
|
||||||
|
Name: "email" /* required */,
|
||||||
|
Value: changeusers.email
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "phone_number" /* required */,
|
||||||
|
Value: "+91" + changeusers.phone
|
||||||
|
}
|
||||||
|
/* more items */
|
||||||
|
]
|
||||||
|
};
|
||||||
|
}else if(userData.fk_entity_type_id == 3)
|
||||||
|
{
|
||||||
|
params = {
|
||||||
|
UserPoolId: vendor_poolData.UserPoolId /* required */,
|
||||||
|
Username: userData.aws_name /* required */,
|
||||||
|
|
||||||
UserAttributes: [
|
UserAttributes: [
|
||||||
{
|
{
|
||||||
Name: "email" /* required */,
|
Name: "email" /* required */,
|
||||||
@ -581,34 +606,34 @@ export class AwsService {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
adminremoveGroup(roles,users){
|
// adminremoveGroup(roles,users){
|
||||||
console.log(roles);
|
// console.log(roles);
|
||||||
console.log(users);
|
// console.log(users);
|
||||||
if(users !==undefined){
|
// if(users !==undefined){
|
||||||
|
|
||||||
let session:any = this.shared.getAccessToken() ||"";
|
// let session:any = this.shared.getAccessToken() ||"";
|
||||||
this.getconfig();
|
// this.getconfig();
|
||||||
let params:any;
|
// let params:any;
|
||||||
if(users.fk_entity_id ==1){
|
// if(users.fk_entity_type_id ==1){
|
||||||
params = {
|
// params = {
|
||||||
GroupName: roles.GroupName, /* required */
|
// GroupName: roles.GroupName, /* required */
|
||||||
UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
// UserPoolId: sineedgedev_poolData.UserPoolId, /* required */
|
||||||
Username: users.aws_name//'2c64866e-e96f-453b-903f-2b6f831688af' /* required */
|
// Username: users.aws_name//'2c64866e-e96f-453b-903f-2b6f831688af' /* required */
|
||||||
};
|
// };
|
||||||
}else if(users.fk_entity_id ==2){
|
// }else if(users.fk_entity_id ==2){
|
||||||
params = {
|
// params = {
|
||||||
GroupName: roles.GroupName, /* required */
|
// GroupName: roles.GroupName, /* required */
|
||||||
UserPoolId: lender_poolData.UserPoolId, /* required */
|
// UserPoolId: lender_poolData.UserPoolId, /* required */
|
||||||
Username: users.aws_name//'2c64866e-e96f-453b-903f-2b6f831688af' /* required */
|
// Username: users.aws_name//'2c64866e-e96f-453b-903f-2b6f831688af' /* required */
|
||||||
};
|
// };
|
||||||
}
|
// }
|
||||||
let cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider();
|
// let cognitoidentityserviceprovider = new AWS.CognitoIdentityServiceProvider();
|
||||||
cognitoidentityserviceprovider.adminRemoveUserFromGroup(params, function(err, data) {
|
// cognitoidentityserviceprovider.adminRemoveUserFromGroup(params, function(err, data) {
|
||||||
if (err) console.log(err, err.stack); // an error occurred
|
// if (err) console.log(err, err.stack); // an error occurred
|
||||||
else console.log(data); // successful response
|
// else console.log(data); // successful response
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
adminresetpassword(awsuser){
|
adminresetpassword(awsuser){
|
||||||
this.getconfig();
|
this.getconfig();
|
||||||
|
|||||||
@ -18,6 +18,9 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="noRecordFound" class="nocontent ml-xs mr-xs" style="width: 90%;">No records found</div>
|
<div *ngIf="noRecordFound" class="nocontent ml-xs mr-xs" style="width: 90%;">No records found</div>
|
||||||
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="managepdteam()" matTooltip="Manage PD Team" matTooltipPosition="above"><mat-icon>people</mat-icon></button>
|
||||||
|
</div>
|
||||||
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
<div class="ml-xs mr-xs" style="width: 10%; text-align: right;">
|
||||||
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addPdTeam()" matTooltip="Add PD Team" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" [color]="color" (click)="addPdTeam()" matTooltip="Add PD Team" matTooltipPosition="above"><mat-icon>add</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -69,7 +69,10 @@ export class PdTeamListComponent implements OnInit {
|
|||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
/**To Manage Team */
|
||||||
|
managepdteam(){
|
||||||
|
this.router.navigate(['/setting/pdteam/pdteammanage']);
|
||||||
|
}
|
||||||
changeListView(){
|
changeListView(){
|
||||||
this.getPdTeam();
|
this.getPdTeam();
|
||||||
this.listView = true;
|
this.listView = true;
|
||||||
|
|||||||
@ -0,0 +1,54 @@
|
|||||||
|
<mat-card>
|
||||||
|
|
||||||
|
<div style="margin: 6px; padding: 4px;">
|
||||||
|
<div class="p_title" style="font-size: 26px; font-style: bold;">Manage PD Team</div>
|
||||||
|
<!--<div class="sub_title" style="font-size: 11px;">List of Entity Master Details</div>-->
|
||||||
|
<hr>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="loader">
|
||||||
|
<mat-progress-bar mode="indeterminate" color="primary" class="mb-1"></mat-progress-bar>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div fxLayout="row" fxLayout.xs="column" fxLayoutWrap fxLayoutAlign="center none" *ngIf="viewpage">
|
||||||
|
<div fxFlex="100%">
|
||||||
|
|
||||||
|
<div fxLayout="row wrap">
|
||||||
|
<div fxFlex.gt-sm="30" fxFlex.gt-xs="30" fxFlex="50" *ngFor="let pdteamdetails of pdTeamManageData; let i = index;" >
|
||||||
|
<mat-card class="mb-1">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<mat-card-title style="margin-bottom:0px!important;" >{{pdteamdetails.team_name | titlecase}} <mat-icon (click)="cityinfo(pdteamdetails.pdteam_id)"style="margin-left:29px;;">info</mat-icon></mat-card-title>
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
<mat-card-subtitle >{{pdteamdetails.short_name}}</mat-card-subtitle>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<mat-list class='bag' [dragula]='"bag"' [dragulaModel]="pdteamdetails.USERPROFILE" [attr.data-id]="pdteamdetails.pdteam_id" >
|
||||||
|
|
||||||
|
|
||||||
|
<mat-list-item *ngFor="let users of pdteamdetails.USERPROFILE let i=index" [attr.data-id]="users.userid" [attr.data-index]="i">
|
||||||
|
<div #bag1 class="d-flex w-100 justify-content-between">
|
||||||
|
{{ users.user_full_name |titlecase}}
|
||||||
|
|
||||||
|
<i class="fa fa-arrows-alt ml-1 mr-1"aria-hidden="true"></i></div></mat-list-item>
|
||||||
|
|
||||||
|
|
||||||
|
</mat-list>
|
||||||
|
</mat-card>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div style="width: 10%; text-align: right;">
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" color="primary" matTooltip="Submit" [disabled]="btnsave" (click)="getnewTeamDetails()" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div *ngIf="!viewpage" style="text-align: center">
|
||||||
|
<span>{{pdTeamManageData}}</span>
|
||||||
|
</div>
|
||||||
|
</mat-card>
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
|
||||||
|
.tooltip {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
border-bottom: 1px dotted black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip .tooltiptext {
|
||||||
|
visibility: hidden;
|
||||||
|
width: 120px;
|
||||||
|
background-color: black;
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding: 5px 0;
|
||||||
|
|
||||||
|
/* Position the tooltip */
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tooltip:hover .tooltiptext {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { PdTeamManageComponent } from './pd-team-manage.component';
|
||||||
|
|
||||||
|
describe('PdTeamManageComponent', () => {
|
||||||
|
let component: PdTeamManageComponent;
|
||||||
|
let fixture: ComponentFixture<PdTeamManageComponent>;
|
||||||
|
|
||||||
|
beforeEach(async(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
declarations: [ PdTeamManageComponent ]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
}));
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
fixture = TestBed.createComponent(PdTeamManageComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -0,0 +1,120 @@
|
|||||||
|
import { Output, EventEmitter,Component, OnInit,ViewEncapsulation, Directive, ViewChild } from '@angular/core';
|
||||||
|
import { PdTeamService } from '../../service/masters/pd-team.service';
|
||||||
|
import { DragulaService } from 'ng2-dragula';
|
||||||
|
|
||||||
|
/**sweet alert */
|
||||||
|
import Swal from 'sweetalert2'
|
||||||
|
@Component({
|
||||||
|
selector: 'app-pd-team-manage',
|
||||||
|
templateUrl: './pd-team-manage.component.html',
|
||||||
|
styleUrls: ['./pd-team-manage.component.scss']
|
||||||
|
})
|
||||||
|
|
||||||
|
export class PdTeamManageComponent implements OnInit {
|
||||||
|
saveData: any;
|
||||||
|
viewpage:boolean = false;
|
||||||
|
pdTeamManageData:any;
|
||||||
|
pdTeamColor:any =[];
|
||||||
|
pdTeamNewList:any = [];
|
||||||
|
transferData: any;
|
||||||
|
btnsave:boolean = true;
|
||||||
|
teamDetails:any = [];
|
||||||
|
loader:boolean = false;
|
||||||
|
mapDetails:any =[];
|
||||||
|
@ViewChild('bag1') bag1: any;
|
||||||
|
constructor( public pdteammanage:PdTeamService,private dragulaService:DragulaService) {
|
||||||
|
this.getPDTeamManageDetails();
|
||||||
|
this.getpdteamchange();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
getPDTeamManageDetails()
|
||||||
|
{
|
||||||
|
this.loader = true;
|
||||||
|
this.pdteammanage.getPdTeam().subscribe(res=>{
|
||||||
|
this.pdTeamManageData = res;
|
||||||
|
if(this.pdTeamManageData.dataStatus == true)
|
||||||
|
{
|
||||||
|
this.loader = false;
|
||||||
|
this.btnsave = true;
|
||||||
|
this.viewpage = true;
|
||||||
|
this.pdTeamManageData = this.pdTeamManageData.records;
|
||||||
|
|
||||||
|
console.log(this.pdTeamManageData);
|
||||||
|
|
||||||
|
}else
|
||||||
|
{
|
||||||
|
this.viewpage = false;
|
||||||
|
this.pdTeamManageData = "No Records Found";
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
getpdteamchange(){
|
||||||
|
let that = this;
|
||||||
|
|
||||||
|
//console.log(this.bag1);
|
||||||
|
that.dragulaService.dropModel.subscribe((args: any) => {
|
||||||
|
|
||||||
|
let [bagName, el, target, source] = args;
|
||||||
|
//console.log(el);
|
||||||
|
console.log(this.bag1.nativeElement);
|
||||||
|
console.log(this.bag1.nativeElement === target);
|
||||||
|
if(this.bag1.nativeElement){ // needed since dropModel triggers for all bags, not only on the dropped bag
|
||||||
|
console.log(this.bag1.nativeElement);
|
||||||
|
|
||||||
|
let transferData:any = {
|
||||||
|
userid: el.dataset.id,
|
||||||
|
oldTeamName: source.dataset.id,
|
||||||
|
newTeamName: target.dataset.id,
|
||||||
|
oldIndex: el.dataset.index
|
||||||
|
}
|
||||||
|
console.log(el);
|
||||||
|
for(let i = 0; i < that.pdTeamManageData.length; i++){
|
||||||
|
let users = that.pdTeamManageData[i].USERPROFILE;
|
||||||
|
for(let us of users){
|
||||||
|
if(us.userid == transferData.userid){
|
||||||
|
transferData.newIndex = i;
|
||||||
|
//console.log(transferData);
|
||||||
|
this.pdTeamNewList.push(transferData);
|
||||||
|
//console.log(that.transferData);
|
||||||
|
console.log(this.pdTeamNewList);
|
||||||
|
this.btnsave = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
getnewTeamDetails(){
|
||||||
|
if(this.pdTeamNewList.length ==0)
|
||||||
|
{
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
|
||||||
|
this.pdteammanage.savePdTeamManage(this.pdTeamNewList).subscribe(res=>
|
||||||
|
{
|
||||||
|
this.saveData = res;
|
||||||
|
if(this.saveData.dataStatus == true)
|
||||||
|
{
|
||||||
|
this.getPDTeamManageDetails();
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cityinfo(id) {
|
||||||
|
Swal("<h5 style='align-items:left !important';>CITY:<br/>"+this.pdTeamManageData[id].CITYMAP+'<br/>'+"PRODUCTS: "+this.pdTeamManageData[id].PRODUCTS+"<br/>"+"CS: "+this.pdTeamManageData[id].CUSTOMERSEGMENT+".. </h5 >");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -3,6 +3,9 @@ import { RouterModule } from '@angular/router';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NotifierModule, NotifierOptions } from 'angular-notifier';
|
import { NotifierModule, NotifierOptions } from 'angular-notifier';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
|
import { PdTeamManageComponent } from './pd-team-manage/pd-team-manage.component';
|
||||||
|
import {MatListModule} from '@angular/material/list';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
MatCardModule,
|
MatCardModule,
|
||||||
MatIconModule,
|
MatIconModule,
|
||||||
@ -30,6 +33,7 @@ import { PdTeamRoutes } from './pd-team.routing';
|
|||||||
|
|
||||||
/** Service */
|
/** Service */
|
||||||
import { PdTeamService } from '../service/masters/pd-team.service';
|
import { PdTeamService } from '../service/masters/pd-team.service';
|
||||||
|
import { DragulaModule } from 'ng2-dragula';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom angular notifier options
|
* Custom angular notifier options
|
||||||
@ -97,13 +101,14 @@ const customNotifierOptions: NotifierOptions = {
|
|||||||
NgxDatatableModule,
|
NgxDatatableModule,
|
||||||
MatSortModule,
|
MatSortModule,
|
||||||
MatSlideToggleModule,
|
MatSlideToggleModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,MatListModule,DragulaModule,
|
||||||
NotifierModule.withConfig(customNotifierOptions),
|
NotifierModule.withConfig(customNotifierOptions),
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
PdTeamListComponent,
|
PdTeamListComponent,
|
||||||
PdTeamAddComponent,
|
PdTeamAddComponent,
|
||||||
PdTeamEditComponent],
|
PdTeamEditComponent,
|
||||||
|
PdTeamManageComponent],
|
||||||
|
|
||||||
providers: [PdTeamService]
|
providers: [PdTeamService]
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import { Routes } from '@angular/router';
|
|||||||
import { PdTeamAddComponent } from '../pd-team/pd-team-add/pd-team-add.component';
|
import { PdTeamAddComponent } from '../pd-team/pd-team-add/pd-team-add.component';
|
||||||
import { PdTeamEditComponent } from '../pd-team/pd-team-edit/pd-team-edit.component';
|
import { PdTeamEditComponent } from '../pd-team/pd-team-edit/pd-team-edit.component';
|
||||||
import { PdTeamListComponent } from '../pd-team/pd-team-list/pd-team-list.component';
|
import { PdTeamListComponent } from '../pd-team/pd-team-list/pd-team-list.component';
|
||||||
|
import { PdTeamManageComponent } from './pd-team-manage/pd-team-manage.component';
|
||||||
|
|
||||||
|
|
||||||
export const PdTeamRoutes: Routes = [{
|
export const PdTeamRoutes: Routes = [{
|
||||||
@ -16,6 +17,9 @@ export const PdTeamRoutes: Routes = [{
|
|||||||
},{
|
},{
|
||||||
path:'editpdteam',
|
path:'editpdteam',
|
||||||
component:PdTeamEditComponent
|
component:PdTeamEditComponent
|
||||||
|
},{
|
||||||
|
path:'pdteammanage',
|
||||||
|
component:PdTeamManageComponent
|
||||||
}]
|
}]
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
|||||||
@ -215,5 +215,31 @@ return this._http.post<any>(this.apiUrl+"savePDTeam", ArrayData)
|
|||||||
// catchError(this.handleError('role', []))
|
// catchError(this.handleError('role', []))
|
||||||
// )
|
// )
|
||||||
// }
|
// }
|
||||||
|
/**
|
||||||
|
* PD Team Manage
|
||||||
|
* sriram
|
||||||
|
*/
|
||||||
|
getPdTeam()
|
||||||
|
{
|
||||||
|
return this._http.get(this.apiUrl+'getPdManage').pipe(catchError(this.handleError('role',[])));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save pd Team Manage
|
||||||
|
* sriram
|
||||||
|
*/
|
||||||
|
|
||||||
|
savePdTeamManage(teamDetails:any)
|
||||||
|
{
|
||||||
|
let records = {records:{teamDetails,fk_updatedby:this._aws.getlocale(),updatedon :currentdate}};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(records);
|
||||||
|
return this._http.post(this.apiUrl+'savePdTeamManage',records);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* End of the function
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
@ -150,8 +150,8 @@ export class UserService {
|
|||||||
let pdtypeid:any;
|
let pdtypeid:any;
|
||||||
let pdteam:any;
|
let pdteam:any;
|
||||||
|
|
||||||
if(users.pdteam !=null && users.pdtype !=null){
|
if(users.pdteam !=null){
|
||||||
pdtypeid = users.pdtype.pd_type_id;
|
|
||||||
|
|
||||||
pdteam = users.pdteam.pdteam_id;
|
pdteam = users.pdteam.pdteam_id;
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ export class UserService {
|
|||||||
userid = users.userid
|
userid = users.userid
|
||||||
}
|
}
|
||||||
let pdofficer = {
|
let pdofficer = {
|
||||||
'fk_pd_type_id':pdtypeid,
|
|
||||||
'fk_team_id':pdteam,
|
'fk_team_id':pdteam,
|
||||||
'fk_user_id':userid
|
'fk_user_id':userid
|
||||||
|
|
||||||
|
|||||||
@ -194,7 +194,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;" *ngIf="roleAccess">
|
<!-- <mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;" *ngIf="roleAccess">
|
||||||
<mat-select matInput placeholder="PD Type" [formControl]="regForm.controls['pdtype']" required>
|
<mat-select matInput placeholder="PD Type" [formControl]="regForm.controls['pdtype']" required>
|
||||||
<mat-option>--</mat-option>
|
<mat-option>--</mat-option>
|
||||||
<mat-option *ngFor="let PDT of pdType" [value]="PDT">
|
<mat-option *ngFor="let PDT of pdType" [value]="PDT">
|
||||||
@ -202,7 +202,7 @@
|
|||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field> -->
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
||||||
UserProfile
|
UserProfile
|
||||||
@ -229,13 +229,13 @@
|
|||||||
|
|
||||||
<mat-card-actions>
|
<mat-card-actions>
|
||||||
|
|
||||||
|
<button mat-fab class="mr-1 mb-1" style="margin-top: 7px;" color="primary" matTooltip="Submit" matTooltipPosition="above"><mat-icon>save</mat-icon></button>
|
||||||
|
|
||||||
<button mat-raised-button color="primary" type="submit">Register</button>
|
|
||||||
</mat-card-actions>
|
</mat-card-actions>
|
||||||
</form>
|
</form>
|
||||||
<!-- <button mat-raised-button color="primary" (click)="userupdate()" >Submit</button> -->
|
<!-- <button mat-raised-button color="primary" (click)="userupdate()" >Submit</button> -->
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<div *ngIf="loader">
|
<div *ngIf="loader">
|
||||||
<mat-progress-bar mode="indeterminate" color="accent" class="mb-1"></mat-progress-bar>
|
<mat-progress-bar mode="indeterminate" color="primary" class="mb-1"></mat-progress-bar>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -10,7 +10,7 @@ import { MatOption } from '@angular/material';
|
|||||||
import { UserService } from '../../service/user.service';
|
import { UserService } from '../../service/user.service';
|
||||||
import { ifStmt } from '@angular/compiler/src/output/output_ast';
|
import { ifStmt } from '@angular/compiler/src/output/output_ast';
|
||||||
const pdoff = "PD Officer";
|
const pdoff = "PD Officer";
|
||||||
|
const pdexu = "PD Executive";
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-register',
|
selector: 'app-register',
|
||||||
templateUrl: './register.component.html',
|
templateUrl: './register.component.html',
|
||||||
@ -232,9 +232,9 @@ this.loader = true;
|
|||||||
// this.roleAccess = false;
|
// this.roleAccess = false;
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
if (this.usersData != '' && this.usersData !==undefined || e.value.role_name == pdoff && enitiyid.entity_type_id == 1) {
|
if (this.usersData != '' && this.usersData !==undefined || e.value.role_name == pdoff && enitiyid.entity_type_id == 1 || e.value.role_name == pdexu && enitiyid.entity_type_id == 1) {
|
||||||
console.log(e);
|
|
||||||
if(e.role_name == pdoff && enitiyid.entity_type_id == 1 || e.value.role_name == pdoff && enitiyid.entity_type_id == 1){
|
if(e.role_name == pdoff && enitiyid.entity_type_id == 1 ||e.role_name == pdexu && enitiyid.entity_type_id == 1 || e.value.role_name == pdoff && enitiyid.entity_type_id == 1 || e.value.role_name == pdexu && enitiyid.entity_type_id == 1){
|
||||||
|
|
||||||
this.roleAccess = true;
|
this.roleAccess = true;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@ -36,12 +36,34 @@
|
|||||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Mobile No </mat-header-cell>
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Mobile No </mat-header-cell>
|
||||||
<mat-cell *matCellDef="let us"> {{us.mobile_no}} </mat-cell>
|
<mat-cell *matCellDef="let us"> {{us.mobile_no}} </mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
<ng-container matColumnDef="Roles">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Roles </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let us"> {{us.role_name}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
|
<ng-container matColumnDef="Entity">
|
||||||
|
<mat-header-cell *matHeaderCellDef mat-sort-header> ENTITIES </mat-header-cell>
|
||||||
|
<mat-cell *matCellDef="let us"> {{us.entitytypename}} </mat-cell>
|
||||||
|
</ng-container>
|
||||||
<ng-container matColumnDef="IsActive">
|
<ng-container matColumnDef="IsActive">
|
||||||
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
<mat-header-cell *matHeaderCellDef mat-sort-header> Is Active </mat-header-cell>
|
||||||
<mat-cell *matCellDef="let us"><!--{{row.isactive}}-->
|
<mat-cell *matCellDef="let us"><!--{{row.isactive}}-->
|
||||||
<a (click)="isactive(us.userid,us.aws_name)"><mat-icon *ngIf="us.isactive == 1;else notactive;" class="active" matTooltip="Active" matTooltipPosition="above">done</mat-icon></a>
|
<mat-slide-toggle *ngIf="us.isactive == 1;else notactive;"
|
||||||
<a (click)="isactive(us.userid,us.aws_name)"><ng-template #notactive ><mat-icon class="deactive" matTooltip="Inactive" matTooltipPosition="above">close</mat-icon></ng-template></a>
|
class="example-margin"
|
||||||
|
matTooltip="Active" matTooltipPosition="above"
|
||||||
|
checked="true" [color]="color"
|
||||||
|
(change)="isactive(us.userid,us.aws_name)"
|
||||||
|
onclick="return confirm('Are you sure?')">
|
||||||
|
</mat-slide-toggle>
|
||||||
|
<ng-template #notactive >
|
||||||
|
<mat-slide-toggle
|
||||||
|
class="example-margin"
|
||||||
|
matTooltip="Inactive" matTooltipPosition="above"
|
||||||
|
checked="false" [color]="color"
|
||||||
|
(change)="isactive(us.userid,us.aws_name)"
|
||||||
|
onclick="return confirm('Are you sure?')">
|
||||||
|
</mat-slide-toggle></ng-template>
|
||||||
|
<!-- <a (click)="isactive(us.userid,us.aws_name)"><mat-icon *ngIf="us.isactive == 1;else notactive;" class="active" matTooltip="Active" matTooltipPosition="above">done</mat-icon></a>
|
||||||
|
<a (click)="isactive(us.userid,us.aws_name)"><ng-template #notactive ><mat-icon class="deactive" matTooltip="Inactive" matTooltipPosition="above">close</mat-icon></ng-template></a> -->
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ import { CognitoService } from '../../../AwsService/cognito.service';
|
|||||||
export class UserListComponent implements OnInit {
|
export class UserListComponent implements OnInit {
|
||||||
public dataLength: number;
|
public dataLength: number;
|
||||||
public dataSource = new MatTableDataSource();
|
public dataSource = new MatTableDataSource();
|
||||||
displayedColumns = ['SerialNo','FullName','Email','Mobile','Actions', 'IsActive'];
|
displayedColumns = ['SerialNo','FullName','Email','Mobile','Roles','Entity','Actions', 'IsActive'];
|
||||||
|
|
||||||
@ViewChild(MatPaginator) paginator: MatPaginator;
|
@ViewChild(MatPaginator) paginator: MatPaginator;
|
||||||
@ViewChild(MatSort) sort: MatSort;
|
@ViewChild(MatSort) sort: MatSort;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user