perbaikan profiln dan cost management
This commit is contained in:
parent
1ed4ad5da0
commit
d5c34a5c64
|
@ -328,6 +328,8 @@ export class CostManagementComponent implements OnInit {
|
||||||
this.spinnerActive = true;
|
this.spinnerActive = true;
|
||||||
this.costService.getSyncCost(dataDate).subscribe((data) => {
|
this.costService.getSyncCost(dataDate).subscribe((data) => {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
this.dataCompPrevMonthCost(this.storedData.buildingId);
|
||||||
|
this.dataCompActEstCost(this.storedData.buildingId);
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.spinnerActive = false;
|
this.spinnerActive = false;
|
||||||
|
|
|
@ -84,6 +84,7 @@
|
||||||
formControlName="phone"
|
formControlName="phone"
|
||||||
maxlength="13"
|
maxlength="13"
|
||||||
placeholder="08**************"
|
placeholder="08**************"
|
||||||
|
pattern="^[0-9]*$"
|
||||||
[ngClass]="{
|
[ngClass]="{
|
||||||
'is-invalid': submitted && f.phone.errors
|
'is-invalid': submitted && f.phone.errors
|
||||||
}"
|
}"
|
||||||
|
|
|
@ -50,7 +50,7 @@ export class ProfilInformationComponent {
|
||||||
this.profilInfo = this.formBuilder.group({
|
this.profilInfo = this.formBuilder.group({
|
||||||
firstName: ["", Validators.required],
|
firstName: ["", Validators.required],
|
||||||
lastName: ["", Validators.required],
|
lastName: ["", Validators.required],
|
||||||
email: ["", [Validators.required, Validators.email]],
|
email: ["", [Validators.required, Validators.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)]],
|
||||||
phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||||
image: [null],
|
image: [null],
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue