From ccdfda7bd34dbe87dbe6fb5db395cb12ae793f99 Mon Sep 17 00:00:00 2001 From: Phillip Kruger Date: Fri, 10 Sep 2021 14:11:12 +0200 Subject: [PATCH] Added search in log level in Dev UI Signed-off-by:Phillip Kruger --- .../src/main/resources/dev-static/js/logstream.js | 7 +++++++ .../src/main/resources/dev-templates/logmanagerModals.html | 1 + 2 files changed, 8 insertions(+) diff --git a/extensions/vertx-http/deployment/src/main/resources/dev-static/js/logstream.js b/extensions/vertx-http/deployment/src/main/resources/dev-static/js/logstream.js index 86fcb0883c56d..00bbe324cba6c 100644 --- a/extensions/vertx-http/deployment/src/main/resources/dev-static/js/logstream.js +++ b/extensions/vertx-http/deployment/src/main/resources/dev-static/js/logstream.js @@ -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'); }); diff --git a/extensions/vertx-http/deployment/src/main/resources/dev-templates/logmanagerModals.html b/extensions/vertx-http/deployment/src/main/resources/dev-templates/logmanagerModals.html index 9acc9f907811b..dc6a3e431106e 100644 --- a/extensions/vertx-http/deployment/src/main/resources/dev-templates/logmanagerModals.html +++ b/extensions/vertx-http/deployment/src/main/resources/dev-templates/logmanagerModals.html @@ -34,6 +34,7 @@