{{#let (hash value=(or sortBy "State:asc") change=(action (mut sortBy) value="target.selected") ) (hash state=(hash value=(if state (split state ',') undefined) change=(action (mut state) value="target.selectedItems") ) searchproperty=(hash value=(if (not-eq searchproperty undefined) (split searchproperty ',') searchProperties ) change=(action (mut searchproperty) value="target.selectedItems") default=searchProperties ) ) loader.data as |sort filters items|}}

{{#if (gt items.length 0)}} {{/if}} {{did-insert (set this 'create' modal)}}

Add peer connection

{{#if modal.opened}} {{did-insert (set this 'form' form)}} {{/if}}
Add peer connection
{{did-insert (set this 'regenerate' modal)}}

Regenerate token

{{#if this.item}} {{did-insert (set this 'regenerateForm' form)}} {{/if}}
{{!-- TODO: do we need to check permissions here or will we receive an error automatically? --}}

{{t 'routes.dc.peers.index.empty.header' items=items.length }}

{{t 'routes.dc.peers.index.empty.body' items=items.length canUsePartitions=(can "use partitions") canUseACLs=(can "use acls") htmlSafe=true }}

{{/let}}