X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=ed4729e3ee067c800311fc52f85078abcd1886b2;hb=602d6befd30793111d3fda6e733f73e08d8b7a30;hp=734d7f19312f94f1d3dc3bdae585a18c8fac2248;hpb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;p=vchess.git diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue index 734d7f19..ed4729e3 100644 --- a/client/src/components/ContactForm.vue +++ b/client/src/components/ContactForm.vue @@ -34,7 +34,7 @@ export default { }; }, methods: { - // Note: not using Vue here, but would be possible + // Note: not using Vue here, but would be possible trySendMessage: function() { let email = document.getElementById("userEmail"); let subject = document.getElementById("mailSubject"); @@ -43,8 +43,8 @@ export default { if (!!error) return alert(error); if (content.value.trim().length == 0) - return alert("Empty message"); - if (subject.value.trim().length == 0 && !confirm("No subject. Send anyway?")) + return alert(this.st.tr["Empty message"]); + if (subject.value.trim().length == 0 && !confirm(this.st.tr["No subject. Send anyway?"])) return; // Message sending: @@ -65,7 +65,7 @@ export default { } ); }, - }, + }, };