mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 09:43:13 +00:00
show sending state for send message button as finding path could take some time
This commit is contained in:
parent
9133fa70b0
commit
ed4ae36c44
1 changed files with 7 additions and 1 deletions
|
|
@ -757,7 +757,8 @@
|
|||
|
||||
<!-- send message -->
|
||||
<button @click="sendMessage" :disabled="!canSendMessage" type="button" class="ml-auto my-auto inline-flex items-center gap-x-1 rounded-md px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2" :class="[ canSendMessage ? 'bg-blue-500 hover:bg-blue-400 focus-visible:outline-blue-500' : 'bg-gray-400 focus-visible:outline-gray-500 cursor-not-allowed']">
|
||||
Send
|
||||
<span v-if="isSendingMessage">Sending...</span>
|
||||
<span v-else>Send</span>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
|
@ -3096,6 +3097,11 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
// can't send if already sending
|
||||
if(this.isSendingMessage){
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue