From 1754274d467b5ce23a4a3280690b99558c2de150 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Thu, 8 Dec 2022 12:43:42 -0600 Subject: [PATCH] Fix ui flake when switching to activity and connection tabs --- static/js/app.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 2aa539f..468b22b 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -641,6 +641,8 @@ function showQueryPanel() { function showConnectionPanel() { setCurrentTab("table_connection"); + $("#input").hide(); + $("#body").addClass("full"); apiCall("get", "/connection", {}, function(data) { var rows = []; @@ -653,9 +655,6 @@ function showConnectionPanel() { columns: ["attribute", "value"], rows: rows }); - - $("#input").hide(); - $("#body").addClass("full"); }); } @@ -670,10 +669,11 @@ function showActivityPanel() { } setCurrentTab("table_activity"); + $("#input").hide(); + $("#body").addClass("full"); + apiCall("get", "/activity", {}, function(data) { buildTable(data, null, null, options); - $("#input").hide(); - $("#body").addClass("full"); }); }