Add IS_SET and IS_NOT_SET options to SelfServeConditionRules and update UI with new rule creation button
- Extended condition rules with `IS_SET` and `IS_NOT_SET` options. - Added "Tilføj betingelsesregel" button in `SelfServeConditionRulesModal` for enhanced rule management.
This commit is contained in:
@@ -56,6 +56,18 @@ const closeModal = () => {
|
||||
</span>
|
||||
<span>Tilføj opgaveregel</span>
|
||||
</button>
|
||||
<button
|
||||
class="button is-primary"
|
||||
@click="SessionUser.objects.self_serve_condition_rules.showCreateObjectForm({
|
||||
condition_id: condition.id,
|
||||
object_type: 'condition'
|
||||
}, loadList)"
|
||||
>
|
||||
<span class="icon">
|
||||
<i class="fas fa-filter"></i>
|
||||
</span>
|
||||
<span>Tilføj betingelsesregel</span>
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
</SelfServeConditionRulesPagination>
|
||||
|
||||
@@ -74,6 +74,8 @@ export const SelfServeConditionRules = {
|
||||
return [
|
||||
{ id: "IS_TRUE", name: "Er sand" },
|
||||
{ id: "IS_FALSE", name: "Er falsk" },
|
||||
{ id: "IS_SET", name: "Er sat" },
|
||||
{ id: "IS_NOT_SET", name: "Er ikke sat" },
|
||||
];
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user