change button text #27
This commit is contained in:
@@ -159,7 +159,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
|
||||
@@ -278,11 +278,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';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,7 +366,9 @@ function renderSpots() {
|
||||
|
||||
async function executeMove(spot) {
|
||||
if (!isHomed) {
|
||||
UI.log('Cannot move: System is not homed! Please click HOME ALL.', 'error');
|
||||
const msg = 'Cannot move: System is not homed! Please click FORCE HOME in the control panel first.';
|
||||
UI.log(msg, 'error');
|
||||
alert(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,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
|
||||
@@ -247,11 +247,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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user