aboutsummaryrefslogtreecommitdiffstats
path: root/interface/js/app
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2020-06-07 18:01:04 +0300
committermoisseev <moiseev@mezonplus.ru>2020-06-07 18:01:04 +0300
commitccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3 (patch)
tree5f2361056fd8922ee27f7818580180437871e97b /interface/js/app
parent1a5d3a27d7fffd575816d6efa6965c5702bf4171 (diff)
downloadrspamd-ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3.tar.gz
rspamd-ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3.zip
[Minor] Hide Refresh button when it is unused
Diffstat (limited to 'interface/js/app')
-rw-r--r--interface/js/app/rspamd.js6
1 files changed, 6 insertions, 0 deletions
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 () {