UX: Fix button syntax in preferences (#28074)

* UX: Fix button syntax in preferences

* linting
This commit is contained in:
carson chang 2024-07-25 14:46:30 -07:00 committed by GitHub
parent 5958ad89f2
commit f169985fce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,13 +94,15 @@
<a href {{on "click" this.toggleShowAllAuthTokens}}>
{{#if this.showAllAuthTokens}}
{{d-icon "caret-up"}}
{{i18n "user.auth_tokens.show_few"}}
<span>{{i18n "user.auth_tokens.show_few"}}</span>
{{else}}
{{d-icon "caret-down"}}
{{i18n
"user.auth_tokens.show_all"
count=this.model.user_auth_tokens.length
}}
<span>
{{i18n
"user.auth_tokens.show_all"
count=this.model.user_auth_tokens.length
}}
</span>
{{/if}}
</a>
{{/if}}
@ -109,7 +111,12 @@
href
{{on "click" (fn this.revokeAuthToken null)}}
class="pull-right text-danger"
>{{d-icon "sign-out-alt"}} {{i18n "user.auth_tokens.log_out_all"}}</a>
>
{{d-icon "sign-out-alt"}}
<span>
{{i18n "user.auth_tokens.log_out_all"}}
</span>
</a>
</div>
{{/if}}