mirror of
https://github.com/ArthurDanjou/website.git
synced 2026-01-14 12:14:42 +01:00
Change guestbook message length
This commit is contained in:
@@ -14,7 +14,7 @@ const isOpen = ref(false)
|
|||||||
const toast = useToast()
|
const toast = useToast()
|
||||||
const messageContent = ref<string>('')
|
const messageContent = ref<string>('')
|
||||||
async function sign() {
|
async function sign() {
|
||||||
if (messageContent.value.length < 7 || messageContent.value.length > 58)
|
if (messageContent.value.length < 7 || messageContent.value.length > 100)
|
||||||
return
|
return
|
||||||
|
|
||||||
isOpen.value = false
|
isOpen.value = false
|
||||||
@@ -113,7 +113,7 @@ async function deleteMessage(id: number) {
|
|||||||
<UButton
|
<UButton
|
||||||
class="absolute right-1 top-1 rounded-md"
|
class="absolute right-1 top-1 rounded-md"
|
||||||
label="Send"
|
label="Send"
|
||||||
:disabled="messageContent.trim().length < 7 || messageContent.trim().length > 58"
|
:disabled="messageContent.trim().length < 7 || messageContent.trim().length > 100"
|
||||||
variant="solid"
|
variant="solid"
|
||||||
@click.prevent="sign()"
|
@click.prevent="sign()"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user