Ba515 fix 500 error on url prefil (#483)
* fix password reset bug * fix form theme builder --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -107,9 +107,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ThemeBuilder from "~/lib/forms/themes/ThemeBuilder"
|
||||
import FormUrlPrefill from "../../../open/forms/components/FormUrlPrefill.vue"
|
||||
import OpenForm from "../../../open/forms/OpenForm.vue"
|
||||
import { themes } from "~/lib/forms/themes/form-themes.js"
|
||||
|
||||
export default {
|
||||
name: "UrlFormPrefill",
|
||||
@@ -121,11 +121,17 @@ export default {
|
||||
|
||||
data: () => ({
|
||||
prefillFormData: null,
|
||||
theme: themes.default,
|
||||
showUrlFormPrefillModal: false,
|
||||
}),
|
||||
|
||||
computed: {},
|
||||
computed: {
|
||||
theme () {
|
||||
return new ThemeBuilder(this.form.theme, {
|
||||
size: this.form.size,
|
||||
borderRadius: this.form.border_radius
|
||||
}).getAllComponents()
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
generateUrl(formData) {
|
||||
|
||||
Reference in New Issue
Block a user