mirror of https://github.com/status-im/consul.git
ui: Add an Address copy button to the service instance page (#7977)
* ui: Add an Address copy button to the service instance page * ui: Fallback to Node Address if no Service Address is configured
This commit is contained in:
parent
002797af82
commit
b0f38fe899
|
@ -26,6 +26,11 @@
|
||||||
<dd><a href="{{href-to 'dc.nodes.show' item.Node.Node}}">{{item.Node.Node}}</a></dd>
|
<dd><a href="{{href-to 'dc.nodes.show' item.Node.Node}}">{{item.Node.Node}}</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
|
<BlockSlot @name="actions">
|
||||||
|
{{#let (or item.Address item.Node.Address) as |address|}}
|
||||||
|
<CopyButton @value={{address}} @name="Address">{{address}}</CopyButton>
|
||||||
|
{{/let}}
|
||||||
|
</BlockSlot>
|
||||||
<BlockSlot @name="content">
|
<BlockSlot @name="content">
|
||||||
<TabNav @items={{
|
<TabNav @items={{
|
||||||
compact
|
compact
|
||||||
|
|
Loading…
Reference in New Issue