Skip to content

Commit 463c417

Browse files
committed
fix: de-emphasize Start button when server is already running (btn-ghost)
1 parent 1db3956 commit 463c417

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ async function renderServerDetail(serverId) {
20242024
</div>
20252025
</div>
20262026
<div style="display:flex;gap:8px;flex-wrap:wrap">
2027-
<button class="btn btn-success btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','start',event)" ${s.currentState === 'running' ? 'disabled' : ''}>Start</button>
2027+
<button class="btn ${s.currentState === 'running' ? 'btn-ghost' : 'btn-success'} btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','start',event)" ${s.currentState === 'running' ? 'disabled' : ''}>Start</button>
20282028
<button class="btn btn-warning btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','stop',event)" ${s.currentState !== 'running' ? 'disabled' : ''}>Stop</button>
20292029
<button class="btn btn-ghost btn-full" style="flex:1" onclick="sendPowerCommand('${s.identifier}','restart',event)" ${s.currentState !== 'running' ? 'disabled' : ''}>Restart</button>
20302030
</div>

0 commit comments

Comments
 (0)