diff options
author | moisseev <moiseev@mezonplus.ru> | 2020-06-07 18:01:04 +0300 |
---|---|---|
committer | moisseev <moiseev@mezonplus.ru> | 2020-06-07 18:01:04 +0300 |
commit | ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3 (patch) | |
tree | 5f2361056fd8922ee27f7818580180437871e97b /interface | |
parent | 1a5d3a27d7fffd575816d6efa6965c5702bf4171 (diff) | |
download | rspamd-ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3.tar.gz rspamd-ccb7990e8ce0b42c80aa8cd10c763af5ea5ebac3.zip |
[Minor] Hide Refresh button when it is unused
Diffstat (limited to 'interface')
-rw-r--r-- | interface/index.html | 2 | ||||
-rw-r--r-- | interface/js/app/rspamd.js | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/interface/index.html b/interface/index.html index 8e703649a..64f9fedd8 100644 --- a/interface/index.html +++ b/interface/index.html @@ -43,7 +43,7 @@ </ul> <form class="navbar-form navbar-right" style="display: none;"> <div class="btn-group"> - <a href="#" class="btn btn-default" role="button" data-toggle="button" id="refresh"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a> + <a href="#" class="btn btn-default" role="button" data-toggle="button" id="refresh" style="display: none;"><i class="glyphicon glyphicon-refresh glyphicon-spin"></i> Refresh</a> <button class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="autoRefresh"> <span id="countdown">--:--</span> <span class="caret"></span> </button> 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 () { |