Commit 2d328e80 authored by Julien BOUYER's avatar Julien BOUYER
Browse files

UNOTOPLYS-237 feat(item) : conditions d'affichage des items

parent 2c7f6e7e
......@@ -3,7 +3,7 @@
:label="$t('screen.item.conditions.advanced.condition.label')"
:helpText="$t('screen.item.conditions.advanced.condition.helpText')"
:value="condition.condition"
@update="updateCondition({ condition: $emit })"
@update="updateCondition({ condition: $event })"
/>
</template>
......
......@@ -39,16 +39,11 @@ export default class ConditionsService {
if (displayConditions.length === 0) {
return [];
}
const hasRef = displayConditions.filter(c => c.reference);
if (!hasRef || hasRef.length === 0) {
return [
{
type: ConditionTypes.ADVANCED,
condition: item.displayCondition,
},
];
}
return displayConditions;
return [
{
type: ConditionTypes.ADVANCED,
condition: item.displayCondition,
},
];
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment