1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00

feat(nodes): display node name when available (#2328)

- check if the name of a node is available, otherwise default to the Hostname
This commit is contained in:
Brian Kabiro 2018-10-04 02:07:31 +03:00 committed by Anthony Lapenna
parent 575735a6f7
commit f6d9a4c7c1
2 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@
<div class="node_info">
<div>
<div>
<b>{{ node.Hostname }}</b>
<b>{{ node.Name || node.Hostname }}</b>
<span class="node_platform">
<i class="fab fa-linux" aria-hidden="true" ng-if="node.PlatformOS === 'linux'"></i>
<i class="fab fa-windows" aria-hidden="true" ng-if="node.PlatformOS === 'windows'"></i>