From ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3 Mon Sep 17 00:00:00 2001 From: moisseev Date: Sun, 7 Jun 2020 18:01:04 +0300 Subject: [Minor] Hide Refresh button when it is unused --- interface/js/app/rspamd.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'interface/js/app') diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index 972d3c247..585e20648 100644 --- a/interface/js/app/rspamd.js +++ b/interface/js/app/rspamd.js @@ -125,6 +125,12 @@ function ($, D3pie, visibility, NProgress, stickyTabs, tab_stat, tab_graph, tab_ }); } + if (["#scan_nav", "#selectors_nav", "#disconnect"].indexOf(tab_id) !== -1) { + $("#refresh").hide(); + } else { + $("#refresh").show(); + } + switch (tab_id) { case "#status_nav": (function () { -- cgit v1.2.3