web/admin: show applications instead of providers in outpost form
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
d92d8e6dbb
commit
6b6748b1c7
|
@ -56,6 +56,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG)
|
return new ProvidersApi(DEFAULT_CONFIG)
|
||||||
.providersProxyList({
|
.providersProxyList({
|
||||||
ordering: "pk",
|
ordering: "pk",
|
||||||
|
applicationIsnull: false,
|
||||||
})
|
})
|
||||||
.then((providers) => {
|
.then((providers) => {
|
||||||
return providers.results.map((provider) => {
|
return providers.results.map((provider) => {
|
||||||
|
@ -68,7 +69,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
value=${ifDefined(provider.pk)}
|
value=${ifDefined(provider.pk)}
|
||||||
?selected=${selected}
|
?selected=${selected}
|
||||||
>
|
>
|
||||||
${provider.verboseName} ${provider.name}
|
${provider.assignedApplicationName} (${provider.name})
|
||||||
</option>`;
|
</option>`;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -76,6 +77,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
return new ProvidersApi(DEFAULT_CONFIG)
|
return new ProvidersApi(DEFAULT_CONFIG)
|
||||||
.providersLdapList({
|
.providersLdapList({
|
||||||
ordering: "pk",
|
ordering: "pk",
|
||||||
|
applicationIsnull: false,
|
||||||
})
|
})
|
||||||
.then((providers) => {
|
.then((providers) => {
|
||||||
return providers.results.map((provider) => {
|
return providers.results.map((provider) => {
|
||||||
|
@ -88,7 +90,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
value=${ifDefined(provider.pk)}
|
value=${ifDefined(provider.pk)}
|
||||||
?selected=${selected}
|
?selected=${selected}
|
||||||
>
|
>
|
||||||
${provider.verboseName} ${provider.name}
|
${provider.assignedApplicationName} (${provider.name})
|
||||||
</option>`;
|
</option>`;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -165,7 +167,7 @@ export class OutpostForm extends ModelForm<Outpost, string> {
|
||||||
</p>
|
</p>
|
||||||
</ak-form-element-horizontal>
|
</ak-form-element-horizontal>
|
||||||
<ak-form-element-horizontal
|
<ak-form-element-horizontal
|
||||||
label=${t`Providers`}
|
label=${t`Applications`}
|
||||||
?required=${!this.embedded}
|
?required=${!this.embedded}
|
||||||
name="providers"
|
name="providers"
|
||||||
>
|
>
|
||||||
|
|
Reference in a new issue