This commit is contained in:
2026-04-20 19:40:33 +03:00
parent 3c658dc0a8
commit c34fbb6ab4
2 changed files with 9 additions and 5 deletions

View File

@@ -43,7 +43,10 @@ window.renderBuildingDropdown = function() {
const option = document.createElement('option');
option.value = key;
if (isLocked) {
if (data.has_max_level) {
option.textContent = `${text} — (Μέγιστο Επίπεδο)`;
option.style.color = '#33aa33';
} else if (isLocked) {
option.textContent = `${text} — 🔒 Κλειδωμένο (Προϋποθέσεις)`;
option.style.color = '#ff4444'; // Red as requested
} else if (data.can_upgrade === true) {