diff options
author | Rémy Coutable <remy@rymai.me> | 2017-07-06 19:37:31 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-07-06 19:37:31 +0000 |
commit | 18326c20805df1fb392ea55599626b3f19de1322 (patch) | |
tree | 79871da6e9e136f140c604d26b16163340b56f0d /app/helpers | |
parent | 46ccda86fb7e7c78b75c69d3b4c33f347f03da2b (diff) | |
download | gitlab-ce-18326c20805df1fb392ea55599626b3f19de1322.tar.gz |
Improve & fix the performance bar UI and behavior
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/nav_helper.rb | 1 | ||||
-rw-r--r-- | app/helpers/performance_bar_helper.rb | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index e589ed4e56d..b769462abc2 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -23,7 +23,6 @@ module NavHelper def nav_header_class class_name = '' class_name << " with-horizontal-nav" if defined?(nav) && nav - class_name << " with-peek" if peek_enabled? class_name end diff --git a/app/helpers/performance_bar_helper.rb b/app/helpers/performance_bar_helper.rb new file mode 100644 index 00000000000..d24efe37f5f --- /dev/null +++ b/app/helpers/performance_bar_helper.rb @@ -0,0 +1,7 @@ +module PerformanceBarHelper + # This is a hack since using `alias_method :performance_bar_enabled?, :peek_enabled?` + # in WithPerformanceBar breaks tests (but works in the browser). + def performance_bar_enabled? + peek_enabled? + end +end |