diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-26 18:08:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-26 18:08:45 +0300 |
commit | 2a53c24c512db8613255884b1db42402a31d831b (patch) | |
tree | 37831911612043071365082fb0838c671ec7bbb7 /app/helpers | |
parent | 8e812185ddf4c77ae3b1512b2d04725190e64209 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/user_callouts_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/user_callouts_helper.rb b/app/helpers/user_callouts_helper.rb index 34c8ce51df0..755a38fe5b2 100644 --- a/app/helpers/user_callouts_helper.rb +++ b/app/helpers/user_callouts_helper.rb @@ -7,6 +7,7 @@ module UserCalloutsHelper SUGGEST_POPOVER_DISMISSED = 'suggest_popover_dismissed' TABS_POSITION_HIGHLIGHT = 'tabs_position_highlight' WEBHOOKS_MOVED = 'webhooks_moved' + ALERTS_MOVED = 'alerts_moved' def show_admin_integrations_moved? !user_dismissed?(ADMIN_INTEGRATIONS_MOVED) @@ -43,6 +44,10 @@ module UserCalloutsHelper !user_dismissed?(WEBHOOKS_MOVED) end + def show_alerts_moved_alert? + !user_dismissed?(ALERTS_MOVED) + end + private def user_dismissed?(feature_name, ignore_dismissal_earlier_than = nil) |