5ca987662f
* move warning banner out of token-expire-warning and into user menu * check renewal status every 5s, and resume auto-renew if a user becomes active again * use a link in the token-expire-warning * add test for new expiration functionality * fix license test * use features helper in license test * fix import * use yarn 1.12.1 * remove mirage * skip some tests for now * use eslintignore * logout after auth tests * use new alert-banner for auth info warning * add data-test selector back * move identity back to a button, and style button.link * make the warning message the right color * fix shamir test * review feedback
37 lines
1.4 KiB
Handlebars
37 lines
1.4 KiB
Handlebars
<div class="box is-shadowless is-marginless is-fullwidth">
|
|
{{#if model.disabled}}
|
|
<AlertBanner
|
|
@type="warning"
|
|
@title="Attention"
|
|
@message="This {{model.identityType}} is disabled. All associated tokens cannot be used, but are not revoked."
|
|
data-test-disabled-warning>
|
|
{{#if model.canEdit}}
|
|
<button onclick={{action 'enable' model}} type="button" class="link" data-test-enable=true>
|
|
Enable
|
|
</button>
|
|
{{/if}}
|
|
</AlertBanner>
|
|
{{/if}}
|
|
{{info-table-row label="Name" value=model.name data-test-identity-item-name=true}}
|
|
{{info-table-row label="Type" value=model.type }}
|
|
{{info-table-row label="ID" value=model.id }}
|
|
{{#info-table-row label="Merged Ids" value=model.mergedEntityIds }}
|
|
<div>
|
|
{{#each model.mergedEntityIds as |id|}}
|
|
<div>
|
|
<code class="has-text-black">{{id}}</code>
|
|
</div>
|
|
{{/each}}
|
|
</div>
|
|
{{/info-table-row}}
|
|
{{#info-table-row label="Created" value=model.creationTime}}
|
|
<time datetime={{model.creationTime}} title={{model.creationTime}}>
|
|
{{moment-format model.creationTime 'MMM DD, YYYY [at] h:mm a'}}
|
|
</time>
|
|
{{/info-table-row}}
|
|
{{#info-table-row label="Last Updated" value=model.lastUpdateTime}}
|
|
<time datetime={{model.lastUpdateTime}} title={{model.lastUpdateTime}}>
|
|
{{moment-format model.lastUpdateTime 'MMM DD, YYYY [at] h:mm a'}}
|
|
</time>
|
|
{{/info-table-row}}
|
|
</div> |