Skip to content

Commit 5911fb4

Browse files
committed
fix(webui): improve order of Kafka message column
1 parent 61c201b commit 5911fb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webui/src/components/dashboard/kafka/KafkaMessages.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,22 +294,22 @@ function formatHeaderValue(v: KafkaHeaderValue) {
294294
<table class="table dataTable selectable" aria-label="Recent Messages">
295295
<thead>
296296
<tr>
297+
<th scope="col" class="text-left col-2" v-if="!topicName">Topic</th>
297298
<th scope="col" class="text-left col-2">Key</th>
298299
<th scope="col" class="text-left col-4">Value</th>
299-
<th scope="col" class="text-left col-2" v-if="!topicName">Topic</th>
300300
<th scope="col" class="text-center col-2">Time</th>
301301

302302
</tr>
303303
</thead>
304304
<tbody>
305305
<tr v-for="msg in messages" :key="msg.id" @click.left="handleMessageClick(msg.event)" @mousedown.middle="goToMessage(msg.event, true)" :class="msg.deleted ? 'deleted': ''">
306+
<td v-if="!topicName">{{ msg.event.traits["topic"] }}</td>
306307
<td class="key">
307308
<router-link @click.stop class="row-link" :to="{name: getRouteName('kafkaMessage').value, params: { id: msg.id }}">
308309
{{ msg.key }}
309310
</router-link>
310311
</td>
311312
<td class="message" :title="msg.isAvro ? 'Avro content displayed as JSON' : ''">{{ msg.value }}</td>
312-
<td v-if="!topicName">{{ msg.event.traits["topic"] }}</td>
313313
<td class="text-center">{{ format(msg.event.time) }}</td>
314314
</tr>
315315
</tbody>

0 commit comments

Comments
 (0)