From 6b6748b1c7a782dc41c439ba1c41c26907c760ef Mon Sep 17 00:00:00 2001
From: Jens Langhammer
Date: Fri, 3 Sep 2021 10:43:21 +0200
Subject: [PATCH] web/admin: show applications instead of providers in outpost
form
Signed-off-by: Jens Langhammer
---
web/src/pages/outposts/OutpostForm.ts | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/web/src/pages/outposts/OutpostForm.ts b/web/src/pages/outposts/OutpostForm.ts
index 28a9725e5..446fc969b 100644
--- a/web/src/pages/outposts/OutpostForm.ts
+++ b/web/src/pages/outposts/OutpostForm.ts
@@ -56,6 +56,7 @@ export class OutpostForm extends ModelForm {
return new ProvidersApi(DEFAULT_CONFIG)
.providersProxyList({
ordering: "pk",
+ applicationIsnull: false,
})
.then((providers) => {
return providers.results.map((provider) => {
@@ -68,7 +69,7 @@ export class OutpostForm extends ModelForm {
value=${ifDefined(provider.pk)}
?selected=${selected}
>
- ${provider.verboseName} ${provider.name}
+ ${provider.assignedApplicationName} (${provider.name})
`;
});
});
@@ -76,6 +77,7 @@ export class OutpostForm extends ModelForm {
return new ProvidersApi(DEFAULT_CONFIG)
.providersLdapList({
ordering: "pk",
+ applicationIsnull: false,
})
.then((providers) => {
return providers.results.map((provider) => {
@@ -88,7 +90,7 @@ export class OutpostForm extends ModelForm {
value=${ifDefined(provider.pk)}
?selected=${selected}
>
- ${provider.verboseName} ${provider.name}
+ ${provider.assignedApplicationName} (${provider.name})
`;
});
});
@@ -165,7 +167,7 @@ export class OutpostForm extends ModelForm {