web/admin: fix token edit button

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-02-06 21:13:43 +01:00
parent 61b06eff06
commit 0bbe74e2bf
No known key found for this signature in database

View file

@ -118,18 +118,16 @@ export class TokenListPage extends TablePage<Token> {
html`${item.expiring ? item.expires?.toLocaleString() : t`-`}`,
html`${IntentToLabel(item.intent || IntentEnum.Api)}`,
html`
<ak-forms-modal>
${!item.managed
? html`<ak-forms-modal>
<span slot="submit"> ${t`Update`} </span>
<span slot="header"> ${t`Update Token`} </span>
<ak-token-form slot="form" .instancePk=${item.identifier}></ak-token-form>
<button
?disabled=${item.managed !== null}
slot="trigger"
class="pf-c-button pf-m-plain"
>
<button slot="trigger" class="pf-c-button pf-m-plain">
<i class="fas fa-edit"></i>
</button>
</ak-forms-modal>
</ak-forms-modal>`
: html``}
<ak-token-copy-button
class="pf-c-button pf-m-plain"
identifier="${item.identifier}"