From 4ae3b5153088ae46022e012ec9bd3a5c805a3aca Mon Sep 17 00:00:00 2001 From: Fuzi_fauzia Date: Thu, 11 Jul 2024 11:28:41 +0700 Subject: [PATCH] perbaiki kwh --- .../add-edit-master-building.component.html | 2 +- .../add-edit-master-building.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.html b/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.html index c5116f2..ca038b0 100644 --- a/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.html +++ b/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.html @@ -85,7 +85,7 @@ class="form-control no-arrow" id="kwh" formControlName="kwh" - maxlength="20" + maxlength="15" [ngClass]="{'is-invalid': myForm.get('kwh').invalid && myForm.get('kwh').touched}" />
diff --git a/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.ts b/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.ts index d1f2fcc..deef045 100644 --- a/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.ts +++ b/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.ts @@ -61,7 +61,7 @@ export class AddEditMasterBuildingComponent { address: [this.dataRow.address, Validators.required], phone: [this.dataRow.phone, [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]], owner: [this.dataRow.owner,Validators.required], - kwh: [this.dataRow.kwh, [Validators.required, Validators.maxLength(20), Validators.pattern(/^[0-9]{10,15}$/)]], + kwh: [this.dataRow.kwh, [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{10,15}$/)]], }); }