copy to clipboard on node dash

This commit is contained in:
lvuch 2019-06-28 15:45:02 -07:00
parent b02f234a29
commit 437005dc02
1 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
<div class="text-small {{if textMuted 'text-muted' }} clip"> <div class="text-small {{if textMuted 'text-muted' }} clip">
{{#if (and model.externalIpAddress (not-eq model.externalIpAddress model.ipAddress))}} {{#if (and model.externalIpAddress (not-eq model.externalIpAddress model.ipAddress))}}
{{#copy-inline clipboardText=model.externalIpAddress size="small"}} {{#copy-to-clipboard clipboardText=model.externalIpAddress size="small"}}
{{format-ip model.externalIpAddress}} {{format-ip model.externalIpAddress}}
{{/copy-inline}} {{/copy-to-clipboard}}
&nbsp;/&nbsp; &nbsp;/&nbsp;
{{/if}} {{/if}}
{{#if model.ipAddress}} {{#if model.ipAddress}}
{{#copy-inline clipboardText=model.ipAddress size="small"}} {{#copy-to-clipboard clipboardText=model.ipAddress size="small"}}
{{format-ip model.ipAddress}} {{format-ip model.ipAddress}}
{{/copy-inline}} {{/copy-to-clipboard}}
{{/if}} {{/if}}
</div> </div>