web: fix token delete form not showing token identifiers
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
ec9085ff06
commit
89417ce455
|
@ -77,6 +77,9 @@ export class TokenListPage extends TablePage<Token> {
|
||||||
return html`<ak-forms-delete-bulk
|
return html`<ak-forms-delete-bulk
|
||||||
objectLabel=${t`Token(s)`}
|
objectLabel=${t`Token(s)`}
|
||||||
.objects=${this.selectedElements}
|
.objects=${this.selectedElements}
|
||||||
|
.metadata=${(item: Token) => {
|
||||||
|
return [{ key: t`Identifier`, value: item.identifier }];
|
||||||
|
}}
|
||||||
.usedBy=${(item: Token) => {
|
.usedBy=${(item: Token) => {
|
||||||
return new CoreApi(DEFAULT_CONFIG).coreTokensUsedByList({
|
return new CoreApi(DEFAULT_CONFIG).coreTokensUsedByList({
|
||||||
identifier: item.identifier,
|
identifier: item.identifier,
|
||||||
|
|
|
@ -134,6 +134,9 @@ export class UserTokenList extends Table<Token> {
|
||||||
return html`<ak-forms-delete-bulk
|
return html`<ak-forms-delete-bulk
|
||||||
objectLabel=${t`Token(s)`}
|
objectLabel=${t`Token(s)`}
|
||||||
.objects=${this.selectedElements}
|
.objects=${this.selectedElements}
|
||||||
|
.metadata=${(item: Token) => {
|
||||||
|
return [{ key: t`Identifier`, value: item.identifier }];
|
||||||
|
}}
|
||||||
.delete=${(item: Token) => {
|
.delete=${(item: Token) => {
|
||||||
return new CoreApi(DEFAULT_CONFIG).coreTokensDestroy({
|
return new CoreApi(DEFAULT_CONFIG).coreTokensDestroy({
|
||||||
identifier: item.identifier,
|
identifier: item.identifier,
|
||||||
|
|
Reference in New Issue