diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-07 20:42:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-07 20:42:30 +0100 |
commit | 388329de57ed412fe66063238964f77b609d5891 (patch) | |
tree | 45c30872e83968fe2e32d23bb15e128408cba54e /interface/js/app/rspamd.js | |
parent | 9f0a1bc12e30f0daa9b4f0771da277d9b6d3a3b3 (diff) | |
parent | ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3 (diff) | |
download | rspamd-388329de57ed412fe66063238964f77b609d5891.tar.gz rspamd-388329de57ed412fe66063238964f77b609d5891.zip |
Merge pull request #3397 from moisseev/webui
[Minor] Hide Refresh button when it is unused
Diffstat (limited to 'interface/js/app/rspamd.js')
-rw-r--r-- | interface/js/app/rspamd.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/interface/js/app/rspamd.js b/interface/js/app/rspamd.js index dc343a694..ffd3173d9 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 () { |