enhance ui + fix value update between steps

This commit is contained in:
Jordan Blasenhauer 2024-08-08 21:01:57 +02:00
parent aad33fa5a2
commit 425cc5f8c8
6 changed files with 8 additions and 8 deletions

View file

@ -182,14 +182,14 @@ onUnmounted(() => {
:containerClass="`form-easy-container`"
:columns="props.columns"
>
<Title type="card" :title="'dashboard_easy_mode'" />
<Subtitle type="card" :subtitle="'dashboard_easy_mode_subtitle'" />
<MessageUnmatch
v-if="easyForm.templateUIFormat.length <= 0"
:text="'services_no_easy_mode'"
/>
<template v-if="easyForm.templateUIFormat.length > 0">
<Title type="card" :title="'dashboard_easy_mode'" />
<Subtitle type="card" :subtitle="'dashboard_easy_mode_subtitle'" />
<template v-if="easyForm.templateUIFormat.length > 0">
<template v-for="(step, id) in easyForm.templateUIFormat">
<Container
data-is="content"

File diff suppressed because one or more lines are too long

View file

@ -221,7 +221,7 @@ export const createFormStore = (storeName, formType) => {
const templates = [templateBase.value, templateUI.value];
// Filter to avoid multiple calls
if (!e.target.closest("[data-advanced-form-plugin]")) return;
if (!e.target.closest("[data-is='form']")) return;
if (e.type === "change" && e.target.tagName === "INPUT") return;
// Wait some ms that previous update logic is done like datepicker
setTimeout(() => {

View file

@ -1189,7 +1189,7 @@
"mobile": 12
},
"disabled": false,
"value": "yes",
"value": "no",
"name": "Antibot challenge",
"prev_value": "no",
"popovers": [

View file

@ -4209,7 +4209,7 @@ templates_ui = {
"BAD_BEHAVIOR_BAN_TIME": "3600",
"BAD_BEHAVIOR_THRESHOLD": "30",
"BAD_BEHAVIOR_COUNT_TIME": "60",
"USE_ANTIBOT": "yes",
"USE_ANTIBOT": "no",
"ANTIBOT_URI": "/challenge",
"ANTIBOT_RECAPTCHA_SCORE": "0.7",
"ANTIBOT_RECAPTCHA_SITEKEY": "",

File diff suppressed because one or more lines are too long