mirror of
https://github.com/status-im/consul.git
synced 2025-01-21 02:59:48 +00:00
b373456c76
* Refactor and color SVG Lines based on intention permissions * Create Icon component with L7 and Deny icon styling * Reposition icons on the lines when the lines are redrawn * Create service/intention-permissions helper * Use service/intention-permissions helper to return allow or deny lines * Upgrade consul-api-double to v5.3.5 * Update HasPermission attribute
17 lines
710 B
Handlebars
17 lines
710 B
Handlebars
{{#each @items as |item|}}
|
|
{{#let (find-by 'id' (concat item.Namespace item.Name) @positions) as |style|}}
|
|
{{#if (and (not item.Intention.Allowed) (not item.Intention.HasPermissions))}}
|
|
<span class="deny" style={{{ concat 'top:' style.y 'px;left:' style.x 'px;'}}}>
|
|
<Tooltip>
|
|
An intention is set to 'deny' that prohibits these services from connecting.
|
|
</Tooltip>
|
|
</span>
|
|
{{else if item.Intention.HasPermissions}}
|
|
<span class="L7" style={{{ concat 'top:' style.y 'px;left:' style.x 'px;'}}}>
|
|
<Tooltip>
|
|
The intention between these services has Layer 7 permissions, so certain requests may or may not be permitted.
|
|
</Tooltip>
|
|
</span>
|
|
{{/if}}
|
|
{{/let}}
|
|
{{/each}} |