From 4c2d40986e9db70ea82d8242ffb6a1331524ac29 Mon Sep 17 00:00:00 2001 From: Fuzi_fauzia Date: Sun, 14 Jul 2024 13:56:25 +0700 Subject: [PATCH] perbaikan master building --- .../add-edit-master-building.component.ts | 4 ++-- 1 file 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.ts b/src/app/content/hemat-app/master/master-building/add-edit-master-building/add-edit-master-building.component.ts index 9f250fe..f5fd74b 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 @@ -48,7 +48,7 @@ export class AddEditMasterBuildingComponent { owner: ["", Validators.required], address: ["", Validators.required], phone: ["", [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]], - kwh: ["", [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{2,15}$/)]], + kwh: ["", [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{1,15}$/)]], }); } @@ -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(15), Validators.pattern(/^[0-9]{2,15}$/)]], + kwh: [this.dataRow.kwh, [Validators.required, Validators.maxLength(15), Validators.pattern(/^[0-9]{1,15}$/)]], }); }