|
|
|
@@ -259,7 +259,10 @@ function updateRoom() { |
|
|
|
if (action.conditions) { |
|
|
|
if (!action.conditions.every(cond => cond(room))) { |
|
|
|
button.classList.add("disabled"); |
|
|
|
button.setAttribute("disabled", "true"); |
|
|
|
button.setAttribute("disabled", true); |
|
|
|
} else { |
|
|
|
button.classList.remove("disabled"); |
|
|
|
button.removeAttribute("disabled"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|