From 3ef7dab91fd6ead3b3a52f55a8ea8b5760c34131 Mon Sep 17 00:00:00 2001 From: Fuzi_fauzia Date: Wed, 10 Jul 2024 18:05:07 +0700 Subject: [PATCH] perbaikan master building --- .../add-edit-master.component.ts | 4 +++- .../add-edit-master-building.component.html | 4 ++-- .../add-edit-master-building.component.ts | 10 ++++++--- .../master-building.component.html | 4 ++-- .../master-building.component.ts | 2 ++ .../add-edit-master-room.component.ts | 6 ++--- .../master-room/master-room.component.ts | 22 +++++++++++++++++-- .../service/monitoring-api.service.ts | 1 + 8 files changed, 40 insertions(+), 13 deletions(-) diff --git a/src/app/content/hemat-app/master/add-edit-master/add-edit-master.component.ts b/src/app/content/hemat-app/master/add-edit-master/add-edit-master.component.ts index 83e556e..9719184 100644 --- a/src/app/content/hemat-app/master/add-edit-master/add-edit-master.component.ts +++ b/src/app/content/hemat-app/master/add-edit-master/add-edit-master.component.ts @@ -56,11 +56,13 @@ export class AddEditMasterComponent implements OnInit { } editForm() { + console.log(this.dataRow); + const formControls = { id: this.dataRow.id, name: [this.dataRow.name, Validators.required], status: [this.dataRow.status, Validators.required], - headerId: this.dataRow.headerId, + headerId: this.dataRow.header_id, }; if (this.category) { 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 ec03242..405b432 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 @@ -1,5 +1,5 @@