change button text #27

This commit is contained in:
PROFERIS - Mi³osz Stocki
2026-07-15 14:57:01 +02:00
parent 337344b197
commit 90d8532b49
3 changed files with 12 additions and 10 deletions
+3 -3
View File
@@ -249,7 +249,7 @@ function buildHTML() {
</div>
<div style="display:flex; gap: 8px;">
<button id="btn-force-home" class="btn btn-danger" style="flex:1; padding: 10px; font-weight:bold;">
${isHomed ? 'FORCE HOME ALL' : 'HOME ALL MOTORS'}
${isHomed ? 'FORCE HOME' : 'HOME ALL'}
</button>
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
GO TO PARK
@@ -345,11 +345,11 @@ function updateHomingUI() {
if (isHomed) {
banner.className = 'homing-banner homed';
banner.textContent = '✓ HOMED';
btn.textContent = 'FORCE HOME ALL';
btn.textContent = 'FORCE HOME';
} else {
banner.className = 'homing-banner not-homed';
banner.textContent = '⚠ NOT HOMED! Movement Locked.';
btn.textContent = 'HOME ALL MOTORS';
btn.textContent = 'HOME ALL';
}
}