repair color status door lock
This commit is contained in:
parent
beb8a3d7c7
commit
bd9fe33923
|
@ -778,9 +778,9 @@ function updateDoorStatus(data) {
|
||||||
if (servoStatus) {
|
if (servoStatus) {
|
||||||
servoStatus.textContent = data.smartcab.servo_status;
|
servoStatus.textContent = data.smartcab.servo_status;
|
||||||
// Update color based on status
|
// Update color based on status
|
||||||
if (data.smartcab.servo_status === 'Locked') {
|
if (data.smartcab.servo_status === 'terkunci') {
|
||||||
servoStatus.className = 'text-lg font-semibold text-green-600 dark:text-green-400';
|
servoStatus.className = 'text-lg font-semibold text-green-600 dark:text-green-400';
|
||||||
} else {
|
} else if (data.smartcab.servo_status === 'terbuka') {
|
||||||
servoStatus.className = 'text-lg font-semibold text-red-600 dark:text-red-400';
|
servoStatus.className = 'text-lg font-semibold text-red-600 dark:text-red-400';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue