Skip to content

Commit

Permalink
Added search in log level in Dev UI
Browse files Browse the repository at this point in the history
Signed-off-by:Phillip Kruger <[email protected]>
  • Loading branch information
phillip-kruger committed Sep 10, 2021
1 parent 70e5b80 commit ccdfda7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ $('document').ready(function () {
}
});

$("#logLevelFilterInput").on("keyup", function() {
var value = $(this).val().toLowerCase();
$("#logstreamLogLevelsModalTableBody tr").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1);
});
});

$('#logstreamFilterModal').on('shown.bs.modal', function () {
$('#logstreamFilterModalInput').trigger('focus');
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ <h5 class="modal-title" id="logstreamLogLevelsModalLabel">Log Levels</h5>
</button>
</div>
<div class="modal-body">
<input id="logLevelFilterInput" type="text" class="form-control" aria-describedby="logLevelFilterInputPrepend" placeholder="Search...">
<table class="table table-hover table-sm">
<tbody id="logstreamLogLevelsModalTableBody">
</tbody>
Expand Down

0 comments on commit ccdfda7

Please sign in to comment.