Skip to content

Commit

Permalink
enhance ui + fix value update between steps
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed Aug 8, 2024
1 parent aad33fa commit 425cc5f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/ui/client/dashboard/components/Form/Easy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/client/dashboard/pages/modes/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ui/client/dashboard/store/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/client/tests/easy.json
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@
"mobile": 12
},
"disabled": false,
"value": "yes",
"value": "no",
"name": "Antibot challenge",
"prev_value": "no",
"popovers": [
Expand Down
2 changes: 1 addition & 1 deletion src/ui/client/tests/easy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4209,7 +4209,7 @@
"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": "",
Expand Down
2 changes: 1 addition & 1 deletion src/ui/client/tests/easy.txt

Large diffs are not rendered by default.

0 comments on commit 425cc5f

Please sign in to comment.