Skip to content

Commit

Permalink
connect when pressing enter inside new http connection address input …
Browse files Browse the repository at this point in the history
…field
  • Loading branch information
liamcottle committed Nov 28, 2024
1 parent d03f151 commit f549807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/pages/ConnectViaHttpPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- manually connect -->
<div class="flex p-1 space-x-1 bg-white border-b border-gray-300">
<div class="w-full">
<input v-model="newHttpConnectionAddress" type="text" autocapitalize="none" placeholder="e.g: https://mesh.example.com" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
<input v-model="newHttpConnectionAddress" @keyup.enter.exact="connect(newHttpConnectionAddress)" type="text" autocapitalize="none" placeholder="e.g: https://mesh.example.com" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
</div>
<div class="flex h-full my-auto">
<button @click="connect(newHttpConnectionAddress)" type="button" class="bg-blue-500 text-white px-2 py-1 rounded shadow hover:bg-blue-400">
Expand Down

0 comments on commit f549807

Please sign in to comment.