web: fix token delete form not showing token identifiers

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-02-08 00:00:17 +01:00
parent ec9085ff06
commit 89417ce455
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -77,6 +77,9 @@ export class TokenListPage extends TablePage<Token> {
return html`<ak-forms-delete-bulk
objectLabel=${t`Token(s)`}
.objects=${this.selectedElements}
.metadata=${(item: Token) => {
return [{ key: t`Identifier`, value: item.identifier }];
}}
.usedBy=${(item: Token) => {
return new CoreApi(DEFAULT_CONFIG).coreTokensUsedByList({
identifier: item.identifier,

View File

@ -134,6 +134,9 @@ export class UserTokenList extends Table<Token> {
return html`<ak-forms-delete-bulk
objectLabel=${t`Token(s)`}
.objects=${this.selectedElements}
.metadata=${(item: Token) => {
return [{ key: t`Identifier`, value: item.identifier }];
}}
.delete=${(item: Token) => {
return new CoreApi(DEFAULT_CONFIG).coreTokensDestroy({
identifier: item.identifier,