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:
Jeppe Bundgaard
2026-01-09 14:13:56 +01:00
parent 1c13e2c80d
commit 585e56a87f
2 changed files with 14 additions and 0 deletions
@@ -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" },
];
}
},