web/admin: fix token edit button
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
61b06eff06
commit
0bbe74e2bf
|
@ -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>
|
||||
<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"
|
||||
>
|
||||
<i class="fas fa-edit"></i>
|
||||
</button>
|
||||
</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 slot="trigger" class="pf-c-button pf-m-plain">
|
||||
<i class="fas fa-edit"></i>
|
||||
</button>
|
||||
</ak-forms-modal>`
|
||||
: html``}
|
||||
<ak-token-copy-button
|
||||
class="pf-c-button pf-m-plain"
|
||||
identifier="${item.identifier}"
|
||||
|
|
Reference in New Issue