mail space correction,requirement to queries

This commit is contained in:
venbatechnologies@gmail.com 2022-01-21 15:52:07 +05:30
parent 7a1d23f253
commit f306a10301
4 changed files with 11 additions and 7 deletions

View File

@ -116,7 +116,7 @@ export class AwsService {
observer.complete();
},
onFailure: function (err) { // error user login
alert(err.message);
observer.error(err);
}

View File

@ -974,11 +974,13 @@ export class AddPdComponent implements OnInit, OnDestroy {
}
capitalize(str) {
console.log(str)
console.log(this.range)
var splitStr = str.toLowerCase().split(' ');
//alert(splitStr);
for (var i = 0; i < splitStr.length; i++) {
// You do not need to check if i is larger than splitStr length, as your for does that for you
// Assign it back to the array
@ -986,11 +988,11 @@ export class AddPdComponent implements OnInit, OnDestroy {
}
// Directly return the joined string
let d = splitStr.join(' ');
console.log(d)
this._PDtriggerForm.get('company_name');
console.log(this._PDtriggerForm.get('company_name'))
this.range = d
return d
this.range = d
return d
}
ngOnDestroy(): void {
this.ListPdComponent.showListView(true);
@ -1292,7 +1294,7 @@ searchFun(control:any,i:number,option){
this._pd.getvendorlist(value).subscribe(Response=>{
if(Response['dataStatus']){
this.vendorlist=Response['records'];
this.vendorlist=Response['records'];
}
})

View File

@ -15,7 +15,7 @@
<mat-card formArrayName="addtional_requirements" *ngFor="let requirements of pdRequirements.controls; let i = index;">
<mat-card-content [formGroupName]="i" *ngIf="requirements.value.isactive != 0">
<mat-form-field style="width: 90%;" >
<input matInput placeholder="Requirement" formControlName="add_requirement">
<input matInput placeholder="Queries" formControlName="add_requirement">
</mat-form-field>
<button mat-raised-button mat-icon-button color="primary" matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i,_EditPDRequirementForm.value)" type="button"><mat-icon>delete</mat-icon></button>

View File

@ -66,7 +66,9 @@ export class LoginComponent implements OnInit{
* AWS login service
*/
login() {
let auth = { 'Username': this.email, 'Password': this.password };
const mailid = this.email.split(/\s/).join('');
let auth = { 'Username': mailid, 'Password': this.password };
this.loaderService.showMatSpinnerDialog('');
this.aws.dologin(auth).subscribe(res => {
// console.log("do login",res);