send webhook request when enter is pressed

This commit is contained in:
hippoz 2020-10-13 22:39:38 +03:00
parent 6f5561f30a
commit d50e1943eb

View file

@ -23,7 +23,7 @@
<p>i think</p> <p>i think</p>
<br> <br>
<div id="contols" v-if="selectedWebhookObject.url && selectedWebhookObject.name"> <div id="contols" v-if="selectedWebhookObject.url && selectedWebhookObject.name">
<input class="input" placeholder="message" type="text" v-model="message"> </br> <input class="input" placeholder="message" type="text" v-model="message" v-on:keyup.enter="sendMessage(selectedWebhookObject, message)"> </br>
<button class="button-default button-selected" @click="sendMessage(selectedWebhookObject, message)">Send</button> <button class="button-default button-selected" @click="sendMessage(selectedWebhookObject, message)">Send</button>
<br> <br>
<button class="button-default button-selected" @click="deleteCurrentWebhook()">Delete</button> <button class="button-default button-selected" @click="deleteCurrentWebhook()">Delete</button>