repair color status door lock

This commit is contained in:
Vckynando12 2025-02-19 06:16:54 +07:00
parent beb8a3d7c7
commit bd9fe33923
1 changed files with 2 additions and 2 deletions

View File

@ -778,9 +778,9 @@ function updateDoorStatus(data) {
if (servoStatus) {
servoStatus.textContent = data.smartcab.servo_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';
} else {
} else if (data.smartcab.servo_status === 'terbuka') {
servoStatus.className = 'text-lg font-semibold text-red-600 dark:text-red-400';
}
}