Commit 42bb28ee authored by Luke Bennett's avatar Luke Bennett

Resolve recaptcha_modal

parent 9389482d
<script> <script>
import modal from './modal.vue'; import modal from './modal.vue';
<<<<<<< HEAD
export default {
name: 'RecaptchaModal',
components: {
modal,
},
=======
export default { export default {
name: 'RecaptchaModal', name: 'RecaptchaModal',
>>>>>>> upstream/master
components: { components: {
modal, modal,
...@@ -25,24 +16,12 @@ export default { ...@@ -25,24 +16,12 @@ export default {
}, },
}, },
<<<<<<< HEAD
watch: {
html() {
this.appendRecaptchaScript();
},
},
mounted() {
window.recaptchaDialogCallback = this.submit.bind(this);
},
=======
data() { data() {
return { return {
script: {}, script: {},
scriptSrc: 'https://www.google.com/recaptcha/api.js', scriptSrc: 'https://www.google.com/recaptcha/api.js',
}; };
}, },
>>>>>>> upstream/master
watch: { watch: {
html() { html() {
...@@ -69,13 +48,6 @@ export default { ...@@ -69,13 +48,6 @@ export default {
document.body.appendChild(script); document.body.appendChild(script);
}, },
<<<<<<< HEAD
submit() {
this.$el.querySelector('form').submit();
},
},
};
=======
removeRecaptchaScript() { removeRecaptchaScript() {
if (this.script instanceof Element) this.script.remove(); if (this.script instanceof Element) this.script.remove();
}, },
...@@ -90,7 +62,6 @@ export default { ...@@ -90,7 +62,6 @@ export default {
}, },
}, },
}; };
>>>>>>> upstream/master
</script> </script>
<template> <template>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment