web/admin: make token list more consistent
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
3a700a449a
commit
56d40bddd0
|
@ -4,7 +4,6 @@
|
||||||
"embeddedLanguageFormatting": "auto",
|
"embeddedLanguageFormatting": "auto",
|
||||||
"htmlWhitespaceSensitivity": "css",
|
"htmlWhitespaceSensitivity": "css",
|
||||||
"insertPragma": false,
|
"insertPragma": false,
|
||||||
"jsxBracketSameLine": false,
|
|
||||||
"jsxSingleQuote": false,
|
"jsxSingleQuote": false,
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"proseWrap": "preserve",
|
"proseWrap": "preserve",
|
||||||
|
|
|
@ -108,16 +108,18 @@ export class TokenListPage extends TablePage<Token> {
|
||||||
html`${item.expiring ? item.expires?.toLocaleString() : "-"}`,
|
html`${item.expiring ? item.expires?.toLocaleString() : "-"}`,
|
||||||
html`${IntentToLabel(item.intent || IntentEnum.Api)}`,
|
html`${IntentToLabel(item.intent || IntentEnum.Api)}`,
|
||||||
html`
|
html`
|
||||||
${item.managed
|
<ak-forms-modal>
|
||||||
? html``
|
<span slot="submit"> ${t`Update`} </span>
|
||||||
: html`<ak-forms-modal>
|
<span slot="header"> ${t`Update Token`} </span>
|
||||||
<span slot="submit"> ${t`Update`} </span>
|
<ak-token-form slot="form" .instancePk=${item.identifier}></ak-token-form>
|
||||||
<span slot="header"> ${t`Update Token`} </span>
|
<button
|
||||||
<ak-token-form slot="form" .instancePk=${item.identifier}></ak-token-form>
|
?disabled=${item.managed !== null}
|
||||||
<button slot="trigger" class="pf-c-button pf-m-plain">
|
slot="trigger"
|
||||||
<i class="fas fa-edit"></i>
|
class="pf-c-button pf-m-plain"
|
||||||
</button>
|
>
|
||||||
</ak-forms-modal>`}
|
<i class="fas fa-edit"></i>
|
||||||
|
</button>
|
||||||
|
</ak-forms-modal>
|
||||||
<ak-token-copy-button identifier="${item.identifier}">
|
<ak-token-copy-button identifier="${item.identifier}">
|
||||||
<i class="fas fa-copy"></i>
|
<i class="fas fa-copy"></i>
|
||||||
</ak-token-copy-button>
|
</ak-token-copy-button>
|
||||||
|
|
Reference in a new issue