diff --git a/custom/js/helper.js b/custom/js/helper.js index d98eacb..6f32900 100644 --- a/custom/js/helper.js +++ b/custom/js/helper.js @@ -38,6 +38,11 @@ function renderClientList(data) { subnetRangesString = obj.Client.subnet_ranges.join(',') } + let additionalNotesHtml = ""; + if (obj.Client.additional_notes && obj.Client.additional_notes.length > 0) { + additionalNotesHtml = `` + } + // render client html content let html = `
@@ -81,6 +86,7 @@ function renderClientList(data) { ${telegramHtml} + ${additionalNotesHtml} ${obj.Client.email} ${prettyDateTime(obj.Client.created_at)} diff --git a/templates/clients.html b/templates/clients.html index 2d90231..4bd339f 100644 --- a/templates/clients.html +++ b/templates/clients.html @@ -429,6 +429,11 @@ Wireguard Clients $(this).closest('.col-lg-4').show(); } }) + $(".fa-additional_notes").each(function () { + if ($(this).parent().text().trim().indexOf(query.trim()) != -1) { + $(this).closest('.col-lg-4').show(); + } + }) }) $("#status-selector").on('change', function () {