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(); observer.complete();
}, },
onFailure: function (err) { // error user login onFailure: function (err) { // error user login
alert(err.message); alert(err.message);
observer.error(err); observer.error(err);
} }

View File

@ -974,11 +974,13 @@ export class AddPdComponent implements OnInit, OnDestroy {
} }
capitalize(str) { capitalize(str) {
console.log(str) console.log(str)
console.log(this.range) console.log(this.range)
var splitStr = str.toLowerCase().split(' '); var splitStr = str.toLowerCase().split(' ');
//alert(splitStr);
for (var i = 0; i < splitStr.length; i++) { 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 // 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 // Assign it back to the array
@ -986,11 +988,11 @@ export class AddPdComponent implements OnInit, OnDestroy {
} }
// Directly return the joined string // Directly return the joined string
let d = splitStr.join(' '); let d = splitStr.join(' ');
console.log(d)
this._PDtriggerForm.get('company_name'); this._PDtriggerForm.get('company_name');
console.log(this._PDtriggerForm.get('company_name')) console.log(this._PDtriggerForm.get('company_name'))
this.range = d this.range = d
return d return d
} }
ngOnDestroy(): void { ngOnDestroy(): void {
this.ListPdComponent.showListView(true); this.ListPdComponent.showListView(true);
@ -1292,7 +1294,7 @@ searchFun(control:any,i:number,option){
this._pd.getvendorlist(value).subscribe(Response=>{ this._pd.getvendorlist(value).subscribe(Response=>{
if(Response['dataStatus']){ 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 formArrayName="addtional_requirements" *ngFor="let requirements of pdRequirements.controls; let i = index;">
<mat-card-content [formGroupName]="i" *ngIf="requirements.value.isactive != 0"> <mat-card-content [formGroupName]="i" *ngIf="requirements.value.isactive != 0">
<mat-form-field style="width: 90%;" > <mat-form-field style="width: 90%;" >
<input matInput placeholder="Requirement" formControlName="add_requirement"> <input matInput placeholder="Queries" formControlName="add_requirement">
</mat-form-field> </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> <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 * AWS login service
*/ */
login() { 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.loaderService.showMatSpinnerDialog('');
this.aws.dologin(auth).subscribe(res => { this.aws.dologin(auth).subscribe(res => {
// console.log("do login",res); // console.log("do login",res);