feat: display cloud poller name on device page
Show the specific cloud poller name (e.g., dfw, lon) alongside "Cloud" when a device is assigned to a cloud poller. Displays as "Cloud (dfw)" instead of just "Cloud" for better visibility of which poller is being used. When no agent is assigned, continues to show just "Cloud".
This commit is contained in:
parent
10b1168044
commit
b823b5e848
1 changed files with 6 additions and 1 deletions
|
|
@ -69,7 +69,12 @@
|
|||
</span>
|
||||
<%= if @agent_info.type == :cloud do %>
|
||||
<span class="inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400">
|
||||
<.icon name="hero-cloud" class="h-3.5 w-3.5" /> Cloud
|
||||
<.icon name="hero-cloud" class="h-3.5 w-3.5" />
|
||||
<%= if @agent_info.agent_token_id do %>
|
||||
Cloud ({@agent_info.name})
|
||||
<% else %>
|
||||
Cloud
|
||||
<% end %>
|
||||
</span>
|
||||
<% else %>
|
||||
<span class="inline-flex items-center gap-1 text-xs text-green-600 dark:text-green-400">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue