diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUIDrawer.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUIDrawer.svelte index db6e66b87b..d21b4799a1 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUIDrawer.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUIDrawer.svelte @@ -61,10 +61,12 @@ key: "_css", type: "text", }) - $: settingOptions = settings.map(setting => ({ - label: makeLabel(setting), - value: setting.key, - })) + $: settingOptions = settings + .filter(setting => setting.supportsConditions !== false) + .map(setting => ({ + label: makeLabel(setting), + value: setting.key, + })) $: conditions.forEach(link => { if (!link.id) { link.id = generate() diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUISection.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUISection.svelte index fca81f7652..c32116c8a0 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUISection.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/[componentId]/_components/Component/ConditionalUISection.svelte @@ -36,10 +36,7 @@ -
{conditionText}
-
- Configure conditions -
+ {conditionText}
@@ -48,10 +45,3 @@ - - diff --git a/packages/client/manifest.json b/packages/client/manifest.json index 75fe287b2a..6788925c31 100644 --- a/packages/client/manifest.json +++ b/packages/client/manifest.json @@ -2539,7 +2539,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -2629,7 +2630,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -2685,7 +2687,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -2736,7 +2739,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -2841,7 +2845,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "boolean", @@ -2960,7 +2965,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -3143,7 +3149,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -3200,7 +3207,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -3301,7 +3309,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -3355,7 +3364,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "boolean", @@ -3622,7 +3632,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event", @@ -3689,7 +3700,8 @@ { "type": "text", "label": "Default value", - "key": "defaultValue" + "key": "defaultValue", + "supportsConditions": false }, { "type": "event",