File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ async function sendMessage() {
6767 },
6868 })
6969 notificationsStore .addNotification ({
70- message: ' Message Sent !' ,
70+ message: ' Message sent successfully !' ,
7171 type: ' success' ,
7272 })
7373 await router .push (' /threads' )
@@ -86,7 +86,7 @@ async function sendMessage() {
8686 if (data .attachments ) newErrors .set (' attachments' , data .attachments )
8787 if (data .from ) {
8888 notificationsStore .addNotification ({
89- message: data .from [0 ],
89+ message: data .from [0 ]! ,
9090 type: ' error' ,
9191 })
9292 }
@@ -132,7 +132,7 @@ onMounted(async () => {
132132 You can also text a short code like
133133 <v-code >24273</v-code > without entering a full phone number.
134134 </p >
135- <form @submit.prevent = " sendMessage " >
135+ <form >
136136 <v-phone-input
137137 v-model =" formPhoneNumber"
138138 v-model:country =" phoneCountry"
@@ -164,6 +164,7 @@ onMounted(async () => {
164164 :block =" mdAndDown"
165165 :loading =" sending"
166166 :icon =" mdiSend"
167+ @click =" sendMessage"
167168 >
168169 Send Message
169170 </loading-button >
You can’t perform that action at this time.
0 commit comments