Skip to content

Commit 8663b17

Browse files
committed
Fix web lint issues
Signed-off-by: Mihai Criveti <[email protected]>
1 parent 865ea75 commit 8663b17

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

mcpgateway/static/admin.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@
6565

6666
/* .hidden {
6767
display: none;
68-
} */
68+
} */

mcpgateway/static/admin.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ const METRICS_RETRY_DELAY = 2000; // Increased from 1500ms
537537
*/
538538
async function loadAggregatedMetrics() {
539539
const metricsPanel = safeGetElement("metrics-panel", true);
540-
if (!metricsPanel || metricsPanel.closest('.tab-panel.hidden')) {
540+
if (!metricsPanel || metricsPanel.closest(".tab-panel.hidden")) {
541541
console.log("Metrics panel not visible, skipping load");
542542
return;
543543
}
@@ -687,7 +687,9 @@ function showMetricsLoading() {
687687
const metricsPanel = safeGetElement("metrics-panel", true); // suppress warning
688688
if (metricsPanel) {
689689
const existingLoading = safeGetElement("metrics-loading", true);
690-
if (existingLoading) return;
690+
if (existingLoading) {
691+
return;
692+
}
691693

692694
const loadingDiv = document.createElement("div");
693695
loadingDiv.id = "metrics-loading";
@@ -4584,7 +4586,6 @@ document.addEventListener("DOMContentLoaded", () => {
45844586
// });
45854587
// });
45864588

4587-
45884589
// 5. Set up form validation
45894590
setupFormValidation();
45904591

mcpgateway/templates/admin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ <h3 class="text-lg font-bold mb-4 dark:text-gray-200">Add New Root</h3>
13081308
</div>
13091309
</div>
13101310

1311-
1311+
13121312

13131313
<!-- Metrics Panel -->
13141314
<div id="metrics-panel" class="tab-panel hidden">

0 commit comments

Comments
 (0)