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:
Favour Olayinka
2024-07-10 11:31:33 +01:00
committed by GitHub
parent b11f41d8b6
commit 11f99df98f
2 changed files with 18 additions and 6 deletions

View File

@@ -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) {