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:
John Cowen 2020-06-03 10:55:36 +01:00 committed by John Cowen
parent 002797af82
commit b0f38fe899
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@
<dd><a href="{{href-to 'dc.nodes.show' item.Node.Node}}">{{item.Node.Node}}</a></dd>
</dl>
</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">
<TabNav @items={{
compact