Fix stop generation button
This commit is contained in:
@@ -1031,6 +1031,14 @@ class Odidere {
|
||||
this.isStopPending = false;
|
||||
this.$send.classList.remove('pending');
|
||||
}
|
||||
// While loading, the send button acts as the stop control and must stay
|
||||
// clickable regardless of the normal enable/disable logic. When loading
|
||||
// ends, restore the standard state.
|
||||
if (loading) {
|
||||
this.$send.disabled = false;
|
||||
} else {
|
||||
this.updateSendButtonState();
|
||||
}
|
||||
if (loading) {
|
||||
this.wakeLock.acquire();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user