2020-12-02 09:43:34 +00:00
|
|
|
<div
|
|
|
|
class="topology-metrics-popover {{@type}}"
|
|
|
|
...attributes
|
|
|
|
>
|
|
|
|
|
|
|
|
{{#if (eq @type 'deny')}}
|
|
|
|
|
|
|
|
<InformedAction
|
|
|
|
class="dangerous"
|
|
|
|
{{did-insert (set this 'popover')}}
|
2020-11-12 15:40:15 +00:00
|
|
|
>
|
2020-12-02 09:43:34 +00:00
|
|
|
<:header>
|
|
|
|
<h3>
|
|
|
|
Connection Denied
|
|
|
|
</h3>
|
|
|
|
</:header>
|
|
|
|
<:body>
|
|
|
|
<p>
|
2021-01-19 15:40:39 +00:00
|
|
|
{{#if @item.Intention.HasExact}}
|
|
|
|
Change the action of this intention to allow.
|
|
|
|
{{else}}
|
|
|
|
Add an intention that allows these two services to connect.
|
|
|
|
{{/if}}
|
2020-12-02 09:43:34 +00:00
|
|
|
</p>
|
|
|
|
</:body>
|
|
|
|
<:actions as |Actions|>
|
|
|
|
<Actions.Action class="action">
|
2020-11-12 15:40:15 +00:00
|
|
|
<button
|
|
|
|
{{on "click" @oncreate}}
|
2021-01-19 15:40:39 +00:00
|
|
|
data-test-confirm
|
2020-11-12 15:40:15 +00:00
|
|
|
type="button"
|
|
|
|
>
|
2021-01-19 15:40:39 +00:00
|
|
|
{{#if @item.Intention.HasExact}}
|
|
|
|
Allow
|
|
|
|
{{else}}
|
|
|
|
Create
|
|
|
|
{{/if}}
|
2020-11-12 15:40:15 +00:00
|
|
|
</button>
|
2020-12-02 09:43:34 +00:00
|
|
|
</Actions.Action>
|
|
|
|
<Actions.Action>
|
2020-11-12 15:40:15 +00:00
|
|
|
<button
|
2020-12-02 09:43:34 +00:00
|
|
|
{{on 'click' (fn (optional this.popoverController.hide))}}
|
2020-11-12 15:40:15 +00:00
|
|
|
class="cancel"
|
2020-12-14 15:28:35 +00:00
|
|
|
type="button"
|
2020-11-12 15:40:15 +00:00
|
|
|
>
|
|
|
|
Cancel
|
|
|
|
</button>
|
2020-12-02 09:43:34 +00:00
|
|
|
</Actions.Action>
|
|
|
|
</:actions>
|
|
|
|
</InformedAction>
|
|
|
|
|
|
|
|
{{else}}
|
|
|
|
|
|
|
|
<InformedAction
|
|
|
|
class="info"
|
|
|
|
{{did-insert (set this 'popover')}}
|
2020-11-12 15:40:15 +00:00
|
|
|
>
|
2020-12-02 09:43:34 +00:00
|
|
|
<:header>
|
|
|
|
<h3>
|
|
|
|
Layer 7 permissions
|
|
|
|
</h3>
|
|
|
|
</:header>
|
|
|
|
<:body>
|
|
|
|
<p>
|
|
|
|
Certain HTTP request info must be identified.
|
|
|
|
</p>
|
|
|
|
</:body>
|
|
|
|
<:actions as |Actions|>
|
|
|
|
<Actions.Action class="action">
|
|
|
|
<a
|
|
|
|
href={{href-to 'dc.services.show.intentions.edit' (concat @item.Intention.ID)}}
|
|
|
|
>
|
|
|
|
View
|
|
|
|
</a>
|
|
|
|
</Actions.Action>
|
|
|
|
<Actions.Action>
|
2020-11-12 15:40:15 +00:00
|
|
|
<button
|
2020-12-02 09:43:34 +00:00
|
|
|
{{on 'click' (fn (optional this.popoverController.hide))}}
|
|
|
|
class="cancel"
|
2020-12-14 15:28:35 +00:00
|
|
|
type="button"
|
2020-11-12 15:40:15 +00:00
|
|
|
>
|
|
|
|
Close
|
|
|
|
</button>
|
2020-12-02 09:43:34 +00:00
|
|
|
</Actions.Action>
|
|
|
|
</:actions>
|
|
|
|
</InformedAction>
|
|
|
|
|
2020-11-12 15:40:15 +00:00
|
|
|
{{/if}}
|
2020-12-02 09:43:34 +00:00
|
|
|
<button
|
|
|
|
{{with-overlay
|
|
|
|
this.popover
|
|
|
|
options=(hash
|
|
|
|
theme="square-tail"
|
|
|
|
placement="bottom-start"
|
|
|
|
)
|
|
|
|
returns=(set this 'popoverController')
|
|
|
|
}}
|
|
|
|
{{on 'click' (fn (optional this.popoverController.show))}}
|
2021-02-19 16:42:16 +00:00
|
|
|
{{disabled (cannot 'update intention' item=item.Intention)}}
|
2021-01-19 15:40:39 +00:00
|
|
|
type="button"
|
2020-12-02 09:43:34 +00:00
|
|
|
style={{{concat 'top:' @position.y 'px;left:' @position.x 'px;'}}}
|
2021-01-05 10:05:59 +00:00
|
|
|
aria-label={{if (eq @type 'deny') 'Add intention' 'View intention'}}
|
2021-01-19 15:40:39 +00:00
|
|
|
data-test-action
|
2020-12-02 09:43:34 +00:00
|
|
|
>
|
|
|
|
</button>
|
2020-11-12 15:40:15 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|