web/admin: fix only recovery flows being selectable for unenrollment flow in tenant form
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
2543b075be
commit
63a28ca1e9
|
@ -150,7 +150,7 @@ export class TenantForm extends ModelForm<Tenant, string> {
|
|||
<option value="" ?selected=${this.instance?.flowUnenrollment === undefined}>---------</option>
|
||||
${until(new FlowsApi(DEFAULT_CONFIG).flowsInstancesList({
|
||||
ordering: "pk",
|
||||
designation: FlowsInstancesListDesignationEnum.Recovery,
|
||||
designation: FlowsInstancesListDesignationEnum.Unenrollment,
|
||||
}).then(flows => {
|
||||
return flows.results.map(flow => {
|
||||
const selected = this.instance?.flowUnenrollment === flow.pk;
|
||||
|
|
Reference in a new issue