Skip to content

Commit 425475b

Browse files
committed
apply code review suggestions
1 parent bce2669 commit 425475b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Frontend/src/components/messages/HeadersView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function clearSearch() {
2525

2626
<template>
2727
<div class="searchheader">
28-
<input v-model="searchTerm" type="text" placeholder="Search for a header key" class="search-input" />
28+
<input v-model="searchTerm" type="search" placeholder="Search for a header key" class="search-input" />
2929
<button v-if="searchTerm" title="Clear" @click="clearSearch" class="clear-btn">X</button>
3030
</div>
3131

@@ -43,7 +43,7 @@ function clearSearch() {
4343
</tbody>
4444
</table>
4545
<!-- Message if filtered list is empty -->
46-
<div v-else class="alert alert-warning">No headers found matching the search term.</div>
46+
<div v-if="filteredHeaders.length <= 0 && !props.message.headersNotFound" class="alert alert-warning">No headers found matching the search term.</div>
4747
<div v-if="props.message.headersNotFound" class="alert alert-info">Could not find message headers. This could be because the message URL is invalid or the corresponding message was processed and is no longer tracked by ServiceControl.</div>
4848
</template>
4949

0 commit comments

Comments
 (0)