Skip to content

Commit 8271eca

Browse files
committed
If LSL is not started, all the app buttons will remain disabled until LSL starts.
1 parent b49eb9a commit 8271eca

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

static/style.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ button:disabled {
6161

6262
.app-buttons {
6363
margin-top: 20px;
64+
cursor: not-allowed;
6465
}
6566

6667
.row {
@@ -100,6 +101,11 @@ button:disabled {
100101
cursor: not-allowed;
101102
}
102103

104+
.lsl-disabled button {
105+
cursor: not-allowed;
106+
pointer-events: none;
107+
}
108+
103109
button.running {
104110
background-color: rgb(105, 206, 105);
105111
cursor: not-allowed;

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1>Chords-Python Applications</h1>
2929
<button id="start_lsl_button" class="lsl-running" disabled>LSL Stream Running</button>
3030
{% endif %}
3131
</div>
32-
<div class="app-buttons">
32+
<div class="app-buttons {% if not lsl_started %}lsl-disabled{% endif %}">
3333
<!-- Row 1: ECG, EMG, EOG, EEG -->
3434
<div class="row">
3535
<form action="/run_app" method="POST">

0 commit comments

Comments
 (0)