{{#if (gt item.Policies.length 0)}} {{#with item as |token| }} {{#tabular-details data-test-policies onchange=(action 'change') name="Details" items=(sort-by 'CreateTime:desc' 'Name:asc' item.Policies) as |item index| }} {{#block-slot 'header'}} Name Datacenters {{/block-slot}} {{#block-slot 'row'}} {{item.Name}} {{if (not item.isSaving) (join ', ' (policy/datacenters item)) 'Saving...'}} {{/block-slot}} {{#block-slot 'details'}}
{{#confirmation-dialog message='Are you sure you want to remove this policy from this token?'}} {{#block-slot 'action' as |confirm|}} {{/block-slot}} {{#block-slot 'dialog' as |execute cancel message|}}

{{message}}

{{/block-slot}} {{/confirmation-dialog}}
{{/block-slot}} {{/tabular-details}} {{/with}} {{/if}}