FEATURE: Add CSS classes to associated accounts rows

This commit is contained in:
Rafael dos Santos Silva 2019-07-02 16:56:15 -03:00
parent 72441e2c7c
commit c422520b4a

View File

@ -106,10 +106,9 @@
{{#if associatedAccountsLoaded}}
<table>
{{#each authProviders as |authProvider|}}
<tr>
<td>{{authProvider.method.prettyName}}</td>
{{#if authProvider.account}}
<tr class="{{dasherize authProvider.method.name}} account-connected">
<td>{{authProvider.method.prettyName}}</td>
<td>{{authProvider.account.description}}</td>
<td>
{{#if authProvider.method.can_revoke}}
@ -118,7 +117,10 @@
{{/conditional-loading-spinner}}
{{/if}}
</td>
</tr>
{{else}}
<tr class="{{dasherize authProvider.method.name}}">
<td>{{authProvider.method.prettyName}}</td>
<td colspan=2>
{{#if authProvider.method.can_connect}}
{{d-button action=(action "connectAccount") actionParam=authProvider.method label="user.associated_accounts.connect" class="btn-default" icon="plug" disabled=disableConnectButtons}}
@ -126,9 +128,8 @@
{{i18n 'user.associated_accounts.not_connected'}}
{{/if}}
</td>
{{/if}}
</tr>
{{/if}}
{{/each}}
</table>
{{else}}