web: fix fields for new api schema
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
4167276c8f
commit
0832145a01
|
@ -34,7 +34,7 @@ export class UserCountStatusChart extends AKChart<UserMetrics> {
|
||||||
pageSize: 1
|
pageSize: 1
|
||||||
})).pagination.count;
|
})).pagination.count;
|
||||||
const superusers = (await api.coreUsersList({
|
const superusers = (await api.coreUsersList({
|
||||||
isSuperuser: "true"
|
isSuperuser: true
|
||||||
})).pagination.count;
|
})).pagination.count;
|
||||||
this.centerText = count.toString();
|
this.centerText = count.toString();
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -186,7 +186,7 @@ export class OAuth2ProviderFormPage extends ModelForm<OAuth2Provider, number> {
|
||||||
<option value="" ?selected=${this.instance?.rsaKey === undefined}>---------</option>
|
<option value="" ?selected=${this.instance?.rsaKey === undefined}>---------</option>
|
||||||
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
|
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
|
||||||
ordering: "pk",
|
ordering: "pk",
|
||||||
hasKey: "true",
|
hasKey: true,
|
||||||
}).then(keys => {
|
}).then(keys => {
|
||||||
return keys.results.map(key => {
|
return keys.results.map(key => {
|
||||||
let selected = this.instance?.rsaKey === key.pk;
|
let selected = this.instance?.rsaKey === key.pk;
|
||||||
|
|
|
@ -218,7 +218,7 @@ export class ProxyProviderFormPage extends ModelForm<ProxyProvider, number> {
|
||||||
<option value="" ?selected=${this.instance?.certificate === undefined}>---------</option>
|
<option value="" ?selected=${this.instance?.certificate === undefined}>---------</option>
|
||||||
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
|
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
|
||||||
ordering: "pk",
|
ordering: "pk",
|
||||||
hasKey: "true",
|
hasKey: true,
|
||||||
}).then(keys => {
|
}).then(keys => {
|
||||||
return keys.results.map(key => {
|
return keys.results.map(key => {
|
||||||
return html`<option value=${ifDefined(key.pk)} ?selected=${this.instance?.certificate === key.pk}>${key.name}</option>`;
|
return html`<option value=${ifDefined(key.pk)} ?selected=${this.instance?.certificate === key.pk}>${key.name}</option>`;
|
||||||
|
|
|
@ -115,7 +115,7 @@ export class SAMLProviderFormPage extends ModelForm<SAMLProvider, number> {
|
||||||
<option value="" ?selected=${this.instance?.signingKp === undefined}>---------</option>
|
<option value="" ?selected=${this.instance?.signingKp === undefined}>---------</option>
|
||||||
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
|
${until(new CryptoApi(DEFAULT_CONFIG).cryptoCertificatekeypairsList({
|
||||||
ordering: "pk",
|
ordering: "pk",
|
||||||
hasKey: "true",
|
hasKey: true,
|
||||||
}).then(keys => {
|
}).then(keys => {
|
||||||
return keys.results.map(key => {
|
return keys.results.map(key => {
|
||||||
return html`<option value=${ifDefined(key.pk)} ?selected=${this.instance?.signingKp === key.pk}>${key.name}</option>`;
|
return html`<option value=${ifDefined(key.pk)} ?selected=${this.instance?.signingKp === key.pk}>${key.name}</option>`;
|
||||||
|
|
Reference in New Issue