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`${item.expiring ? item.expires?.toLocaleString() : t`-`}`,
|
||||||
html`${IntentToLabel(item.intent || IntentEnum.Api)}`,
|
html`${IntentToLabel(item.intent || IntentEnum.Api)}`,
|
||||||
html`
|
html`
|
||||||
<ak-forms-modal>
|
${!item.managed
|
||||||
|
? html`<ak-forms-modal>
|
||||||
<span slot="submit"> ${t`Update`} </span>
|
<span slot="submit"> ${t`Update`} </span>
|
||||||
<span slot="header"> ${t`Update Token`} </span>
|
<span slot="header"> ${t`Update Token`} </span>
|
||||||
<ak-token-form slot="form" .instancePk=${item.identifier}></ak-token-form>
|
<ak-token-form slot="form" .instancePk=${item.identifier}></ak-token-form>
|
||||||
<button
|
<button slot="trigger" class="pf-c-button pf-m-plain">
|
||||||
?disabled=${item.managed !== null}
|
|
||||||
slot="trigger"
|
|
||||||
class="pf-c-button pf-m-plain"
|
|
||||||
>
|
|
||||||
<i class="fas fa-edit"></i>
|
<i class="fas fa-edit"></i>
|
||||||
</button>
|
</button>
|
||||||
</ak-forms-modal>
|
</ak-forms-modal>`
|
||||||
|
: html``}
|
||||||
<ak-token-copy-button
|
<ak-token-copy-button
|
||||||
class="pf-c-button pf-m-plain"
|
class="pf-c-button pf-m-plain"
|
||||||
identifier="${item.identifier}"
|
identifier="${item.identifier}"
|
||||||
|
|
Reference in New Issue