Skip to content

Commit 6d504d8

Browse files
committed
fix(details-health): pass explicit index to health-details for correct row alternation
The Instance node always received index=0, and each health group node also defaulted to index=0, so all top-level rows rendered with the same bg-white background. Now the Instance node is explicitly :index="0" and each group node receives :index="groupIdx + 1", producing correct even/odd alternation across all sibling health-details rows.
1 parent 99144e0 commit 6d504d8

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

spring-boot-admin-server-ui/src/main/frontend/views/instances/details/details-health.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,14 @@
4848
:title="$t('term.fetch_failed')"
4949
/>
5050
<div class="-mx-4 -my-3">
51-
<health-details :instance="instance" :health="health" name="Instance" />
51+
<health-details
52+
:instance="instance"
53+
:health="health"
54+
:index="0"
55+
name="Instance"
56+
/>
5257

53-
<template v-for="group in healthGroups" :key="group.name">
58+
<template v-for="(group, groupIdx) in healthGroups" :key="group.name">
5459
<div
5560
class="px-4 py-2 border-t border-gray-200 sm:px-6"
5661
:class="{ 'border-b': isHealthGroupOpen(group.name) }"
@@ -88,6 +93,7 @@
8893
:instance="instance"
8994
:health="group.data"
9095
:name="group.name"
96+
:index="groupIdx + 1"
9197
/>
9298
</div>
9399
</template>

0 commit comments

Comments
 (0)