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.costService.getSyncCost(dataDate).subscribe((data) => {
|
||||
console.log(data);
|
||||
this.dataCompPrevMonthCost(this.storedData.buildingId);
|
||||
this.dataCompActEstCost(this.storedData.buildingId);
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.spinnerActive = false;
|
||||
|
|
|
@ -84,6 +84,7 @@
|
|||
formControlName="phone"
|
||||
maxlength="13"
|
||||
placeholder="08**************"
|
||||
pattern="^[0-9]*$"
|
||||
[ngClass]="{
|
||||
'is-invalid': submitted && f.phone.errors
|
||||
}"
|
||||
|
|
|
@ -50,7 +50,7 @@ export class ProfilInformationComponent {
|
|||
this.profilInfo = this.formBuilder.group({
|
||||
firstName: ["", 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}$/)]],
|
||||
image: [null],
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue