Skip to content

Commit

Permalink
Merge pull request #20061 from phillip-kruger/log-level-filter
Browse files Browse the repository at this point in the history
Added search in log level in Dev UI
  • Loading branch information
phillip-kruger authored Sep 13, 2021
2 parents 2b86cad + ccdfda7 commit d6b3021
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 d6b3021

Please sign in to comment.