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

Resolve recaptcha_modal

parent 9389482d
<script>
import modal from './modal.vue';
<<<<<<< HEAD
export default {
name: 'RecaptchaModal',
components: {
modal,
},
=======
export default {
name: 'RecaptchaModal',
>>>>>>> upstream/master
components: {
modal,
......@@ -25,24 +16,12 @@ export default {
},
},
<<<<<<< HEAD
watch: {
html() {
this.appendRecaptchaScript();
},
},
mounted() {
window.recaptchaDialogCallback = this.submit.bind(this);
},
=======
data() {
return {
script: {},
scriptSrc: 'https://www.google.com/recaptcha/api.js',
};
},
>>>>>>> upstream/master
watch: {
html() {
......@@ -69,13 +48,6 @@ export default {
document.body.appendChild(script);
},
<<<<<<< HEAD
submit() {
this.$el.querySelector('form').submit();
},
},
};
=======
removeRecaptchaScript() {
if (this.script instanceof Element) this.script.remove();
},
......@@ -90,7 +62,6 @@ export default {
},
},
};
>>>>>>> upstream/master
</script>
<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