change button text #27
This commit is contained in:
@@ -159,7 +159,7 @@ function buildHTML() {
|
|||||||
</div>
|
</div>
|
||||||
<div style="display:flex; gap: 8px;">
|
<div style="display:flex; gap: 8px;">
|
||||||
<button id="btn-force-home" class="btn btn-danger" style="flex:1; padding: 10px; font-weight:bold;">
|
<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>
|
||||||
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
|
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
|
||||||
GO TO PARK
|
GO TO PARK
|
||||||
@@ -278,11 +278,11 @@ function updateHomingUI() {
|
|||||||
if (isHomed) {
|
if (isHomed) {
|
||||||
banner.className = 'homing-banner homed';
|
banner.className = 'homing-banner homed';
|
||||||
banner.textContent = '✓ HOMED';
|
banner.textContent = '✓ HOMED';
|
||||||
btn.textContent = 'FORCE HOME ALL';
|
btn.textContent = 'FORCE HOME';
|
||||||
} else {
|
} else {
|
||||||
banner.className = 'homing-banner not-homed';
|
banner.className = 'homing-banner not-homed';
|
||||||
banner.textContent = '⚠ NOT HOMED! Movement Locked.';
|
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) {
|
async function executeMove(spot) {
|
||||||
if (!isHomed) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ function buildHTML() {
|
|||||||
</div>
|
</div>
|
||||||
<div style="display:flex; gap: 8px;">
|
<div style="display:flex; gap: 8px;">
|
||||||
<button id="btn-force-home" class="btn btn-danger" style="flex:1; padding: 10px; font-weight:bold;">
|
<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>
|
||||||
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
|
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
|
||||||
GO TO PARK
|
GO TO PARK
|
||||||
@@ -247,11 +247,11 @@ function updateHomingUI() {
|
|||||||
if (isHomed) {
|
if (isHomed) {
|
||||||
banner.className = 'homing-banner homed';
|
banner.className = 'homing-banner homed';
|
||||||
banner.textContent = '✓ HOMED';
|
banner.textContent = '✓ HOMED';
|
||||||
btn.textContent = 'FORCE HOME ALL';
|
btn.textContent = 'FORCE HOME';
|
||||||
} else {
|
} else {
|
||||||
banner.className = 'homing-banner not-homed';
|
banner.className = 'homing-banner not-homed';
|
||||||
banner.textContent = '⚠ NOT HOMED! Movement Locked.';
|
banner.textContent = '⚠ NOT HOMED! Movement Locked.';
|
||||||
btn.textContent = 'HOME ALL MOTORS';
|
btn.textContent = 'HOME ALL';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ function buildHTML() {
|
|||||||
</div>
|
</div>
|
||||||
<div style="display:flex; gap: 8px;">
|
<div style="display:flex; gap: 8px;">
|
||||||
<button id="btn-force-home" class="btn btn-danger" style="flex:1; padding: 10px; font-weight:bold;">
|
<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>
|
||||||
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
|
<button id="btn-park" class="btn btn-secondary" style="flex:1; padding: 10px; font-weight:bold;">
|
||||||
GO TO PARK
|
GO TO PARK
|
||||||
@@ -345,11 +345,11 @@ function updateHomingUI() {
|
|||||||
if (isHomed) {
|
if (isHomed) {
|
||||||
banner.className = 'homing-banner homed';
|
banner.className = 'homing-banner homed';
|
||||||
banner.textContent = '✓ HOMED';
|
banner.textContent = '✓ HOMED';
|
||||||
btn.textContent = 'FORCE HOME ALL';
|
btn.textContent = 'FORCE HOME';
|
||||||
} else {
|
} else {
|
||||||
banner.className = 'homing-banner not-homed';
|
banner.className = 'homing-banner not-homed';
|
||||||
banner.textContent = '⚠ NOT HOMED! Movement Locked.';
|
banner.textContent = '⚠ NOT HOMED! Movement Locked.';
|
||||||
btn.textContent = 'HOME ALL MOTORS';
|
btn.textContent = 'HOME ALL';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user