Skip to content

Commit

Permalink
feat: shows offline also on dashboard host list
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed May 23, 2024
1 parent 9dfbf74 commit f644d57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/components/HostList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<li v-for="host in hosts" class="card bg-base-lighter">
<div class="card-body grid auto-cols-auto grid-flow-col justify-between gap-4">
<div class="overflow-hidden">
<div class="truncate text-xl font-semibold">{{ host.name }}</div>
<div class="truncate text-xl font-semibold">
{{ host.name }} <span class="badge badge-error badge-xs p-1.5" v-if="!host.available">offline</span>
</div>
<ul class="flex flex-row gap-2 text-sm md:gap-4">
<li><ph:cpu class="inline-block" /> {{ host.nCPU }} <span class="mobile-hidden">CPUs</span></li>
<li>
Expand Down

0 comments on commit f644d57

Please sign in to comment.