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>
|
|
|
|
Add an intention that allows these two services to connect.
|
|
|
|
</p>
|
|
|
|
</:body>
|
|
|
|
<:actions as |Actions|>
|
|
|
|
<Actions.Action class="action">
|
2020-11-12 15:40:15 +00:00
|
|
|
<button
|
|
|
|
{{on "click" @oncreate}}
|
|
|
|
type="button"
|
|
|
|
>
|
|
|
|
Create
|
|
|
|
</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')
|
|
|
|
}}
|
|
|
|
type="button"
|
|
|
|
{{on 'click' (fn (optional this.popoverController.show))}}
|
|
|
|
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'}}
|
2020-12-02 09:43:34 +00:00
|
|
|
>
|
|
|
|
</button>
|
2020-11-12 15:40:15 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|