examples/server/webui/index.html: assign id="msg-send" to the "Send" button

Giving the button an id is needed to reliably call focus() after mounting.

Signed-off-by: Tim Janik <timj@gnu.org>
This commit is contained in:
Tim Janik 2024-12-10 17:32:40 +01:00
parent 864a0b67a6
commit ea489cba8c

View file

@ -159,7 +159,7 @@
id="msg-input"
dir="auto"
></textarea>
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0" id="msg-send">Send</button>
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
</div>
</div>