463a3ebea9
* add popups * add ability to disable entity and banner when entity is disabled * re-add alias-popup template * add accpetance tests for creating entities * add more entity creation acceptance tests * add delete to edit-form * add more identity tests and associated selectors * add onSuccess hook and use UnloadModel route mixins * add ability to toggle entity disabling from the popover * fix store list cache because unloadAll isn't synchronous * fill out tests for identity items and aliases * add ability to enable entity from the detail page * toArray on the peekAll * fix other tests/behavior that relied on a RecordArray * adjust layout for disabled entity and label for disabling an entity on the edit form * add item-details integration tests * move disable field on the entity form * use ghost buttons for delete in identity and policy edit forms * adding computed macros for lazy capability fetching and using them in the identity models
39 lines
1.5 KiB
Handlebars
39 lines
1.5 KiB
Handlebars
{{#if model.disabled}}
|
|
<div class="box is-shadowless is-marginless">
|
|
{{#message-in-page type="warning" yieldWithoutColumn=true messageClass="message-body is-marginless" data-test-disabled-warning=true}}
|
|
<div class="column">
|
|
<strong>Attention</strong> This {{model.identityType}} is disabled. All associated tokens cannot be used, but are not revoked.
|
|
</div>
|
|
{{#if model.canEdit}}
|
|
<div class="column is-flex-v-centered is-narrow">
|
|
<button type="button" class="button is-orange box" {{action "enable" model}} data-test-enable=true>
|
|
Enable
|
|
</button>
|
|
</div>
|
|
{{/if}}
|
|
{{/message-in-page}}
|
|
</div>
|
|
{{/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}}
|