From 0832145a0184a342c004fe118f5fe6768a70edaa Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 13 Jun 2021 15:36:25 +0200 Subject: [PATCH] web: fix fields for new api schema Signed-off-by: Jens Langhammer --- web/src/pages/admin-overview/charts/UserCountStatusChart.ts | 2 +- web/src/pages/providers/oauth2/OAuth2ProviderForm.ts | 2 +- web/src/pages/providers/proxy/ProxyProviderForm.ts | 2 +- web/src/pages/providers/saml/SAMLProviderForm.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/pages/admin-overview/charts/UserCountStatusChart.ts b/web/src/pages/admin-overview/charts/UserCountStatusChart.ts index e2f1264d5..68db94c63 100644 --- a/web/src/pages/admin-overview/charts/UserCountStatusChart.ts +++ b/web/src/pages/admin-overview/charts/UserCountStatusChart.ts @@ -34,7 +34,7 @@ export class UserCountStatusChart extends AKChart { pageSize: 1 })).pagination.count; const superusers = (await api.coreUsersList({ - isSuperuser: "true" + isSuperuser: true })).pagination.count; this.centerText = count.toString(); return { diff --git a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts index 9822209e4..64c1f8e7c 100644 --- a/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts +++ b/web/src/pages/providers/oauth2/OAuth2ProviderForm.ts @@ -186,7 +186,7 @@ export class OAuth2ProviderFormPage extends ModelForm { ${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({ ordering: "pk", - hasKey: "true", + hasKey: true, }).then(keys => { return keys.results.map(key => { let selected = this.instance?.rsaKey === key.pk; diff --git a/web/src/pages/providers/proxy/ProxyProviderForm.ts b/web/src/pages/providers/proxy/ProxyProviderForm.ts index 9b21c2dbc..fa1b2518a 100644 --- a/web/src/pages/providers/proxy/ProxyProviderForm.ts +++ b/web/src/pages/providers/proxy/ProxyProviderForm.ts @@ -218,7 +218,7 @@ export class ProxyProviderFormPage extends ModelForm { ${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({ ordering: "pk", - hasKey: "true", + hasKey: true, }).then(keys => { return keys.results.map(key => { return html``; diff --git a/web/src/pages/providers/saml/SAMLProviderForm.ts b/web/src/pages/providers/saml/SAMLProviderForm.ts index 42bd43188..5a12ab679 100644 --- a/web/src/pages/providers/saml/SAMLProviderForm.ts +++ b/web/src/pages/providers/saml/SAMLProviderForm.ts @@ -115,7 +115,7 @@ export class SAMLProviderFormPage extends ModelForm { ${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({ ordering: "pk", - hasKey: "true", + hasKey: true, }).then(keys => { return keys.results.map(key => { return html``;