diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-01-10 10:53:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 21:53:11 -0500 |
commit | 50f67d7e38581fbecc8d36605d5607239e11d305 (patch) | |
tree | cb52eced4236a84784080c9fe68061c0ca1ed7d3 /web_src/js | |
parent | a35714372d9e6be2cf92ce27ef8b05b37f8cb283 (diff) | |
download | gitea-50f67d7e38581fbecc8d36605d5607239e11d305.tar.gz gitea-50f67d7e38581fbecc8d36605d5607239e11d305.zip |
Don't display stop watch top bar icon when disabled and hidden when click other place (#22374)
Fix #22286
When timetracking is disabled, the stop watch top bar icon should be
hidden.
When the stop watch recording popup, it should be allowed to hide with
some operation. Now click any place on this page will hide the popup
window.
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/features/stopwatch.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/features/stopwatch.js b/web_src/js/features/stopwatch.js index b9042fae4c..33915a1d83 100644 --- a/web_src/js/features/stopwatch.js +++ b/web_src/js/features/stopwatch.js @@ -24,6 +24,7 @@ export function initStopwatch() { trigger: 'click', maxWidth: 'none', interactive: true, + hideOnClick: true, }); // global stop watch (in the head_navbar), it should always work in any case either the EventSource or the PeriodicPoller is used. |