Validation for relay URL entry.

This commit is contained in:
Ryan Breen
2023-01-24 23:17:15 -05:00
parent 84a8d5ddeb
commit 6d9235d8c0
3 changed files with 31 additions and 3 deletions

View File

@@ -39,7 +39,8 @@
</template>
</table>
<input x-model="newRelay" type="text"> <button @click="await addRelay()">Add</button>
<input x-model="newRelay" type="text" @keyup.enter="await addRelay()"> <button @click="await addRelay()">Add</button>
<div class="text-red-500 font-bold" x-show="urlError.length > 0" x-text="urlError"></div>
</body>