X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FContactForm.vue;h=9ca337debc13e8abda6b7e5d89d757f1e1626ef2;hb=38714c3dc03806b6ac30ddc06dd694b21414d02f;hp=2f970ae7cb89d091f4f9e6998b144d72989616a2;hpb=4f8871051c030acd51172b73cd20aedce687c2a8;p=vchess.git diff --git a/client/src/components/ContactForm.vue b/client/src/components/ContactForm.vue index 2f970ae7..9ca337de 100644 --- a/client/src/components/ContactForm.vue +++ b/client/src/components/ContactForm.vue @@ -1,7 +1,8 @@ @@ -33,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"); @@ -42,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: @@ -64,11 +65,12 @@ export default { } ); }, - }, + }, };