From 3172ba70b2be3f23342bb64d8411742e0319de95 Mon Sep 17 00:00:00 2001
From: Fuzi_fauzia
Date: Thu, 4 Jul 2024 09:44:39 +0700
Subject: [PATCH] perbaikan kontrol device
---
src/app/_layout/footer/footer.component.html | 2 +-
.../device-control.component.ts | 21 +++++------
.../profil-information.component.html | 36 +++++++++++++++----
.../profil-information.component.ts | 3 +-
.../update-password.component.html | 2 +-
src/app/login/login.component.html | 2 +-
6 files changed, 43 insertions(+), 23 deletions(-)
diff --git a/src/app/_layout/footer/footer.component.html b/src/app/_layout/footer/footer.component.html
index 1375712..164396a 100644
--- a/src/app/_layout/footer/footer.component.html
+++ b/src/app/_layout/footer/footer.component.html
@@ -13,7 +13,7 @@
href="https://allbestsistem.com/"
target="_blank"
style="background-color: #000000 !important;"
- >Smart Building Management Systems (V@2024-07-3.01)
+ >Smart Building Management Systems (V@2024-07-4.01)
diff --git a/src/app/content/hemat-app/device/device-control/device-control.component.ts b/src/app/content/hemat-app/device/device-control/device-control.component.ts
index 5df0246..b764daa 100644
--- a/src/app/content/hemat-app/device/device-control/device-control.component.ts
+++ b/src/app/content/hemat-app/device/device-control/device-control.component.ts
@@ -146,18 +146,15 @@ export class DeviceControlComponent {
}
switchChanged(ev, data) {
- console.log(ev);
- console.log(data);
-
- // const requestData = {
- // device_id: data.device_id,
- // switch: data.mapping[0].switch,
- // value: ev,
- // command_type: "on_off",
- // };
- // this.deviceService.deviceSwitch(requestData).subscribe((res) => {
- // console.log(res);
- // });
+ const requestData = {
+ device_id: data.device_id,
+ switch: data.mapping[0].switch,
+ value: ev,
+ command_type: "on_off",
+ };
+ this.deviceService.deviceSwitch(requestData).subscribe((res) => {
+ console.log(res);
+ });
}
addFieldValue() {}
diff --git a/src/app/content/hemat-app/user-profile/profil-information/profil-information.component.html b/src/app/content/hemat-app/user-profile/profil-information/profil-information.component.html
index d084259..9cffecc 100644
--- a/src/app/content/hemat-app/user-profile/profil-information/profil-information.component.html
+++ b/src/app/content/hemat-app/user-profile/profil-information/profil-information.component.html
@@ -9,24 +9,46 @@