Various fixes
[vchess.git] / client / src / components / ContactForm.vue
index 20d35b0..2f970ae 100644 (file)
@@ -16,13 +16,15 @@ div
         br
         textarea#mailContent
       fieldset
-        button(type="button" onClick="trySendMessage()") Send
+        button(type="button" @click="trySendMessage") Send
         p#emailSent {{ st.tr["Email sent!"] }}
 </template>
 
 <script>
 import { ajax } from "../utils/ajax";
 import { store } from "@/store";
+import { checkNameEmail } from "@/data/userCheck";
+
 export default {
   name: "my-contact-form",
   data: function() {
@@ -65,3 +67,8 @@ export default {
        },
 };
 </script>
+
+<style lang="sass" scoped>
+#emailSent
+  display: none
+</style>