diff options
author | Mayra Cabrera <mcabrera@gitlab.com> | 2018-09-04 10:23:11 -0500 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2018-09-06 10:47:50 -0500 |
commit | d6fa67824d13fc342721e996810f2838d4706fd2 (patch) | |
tree | 9a82614ec32df17b31d348f3c8da2ee8d2f41eb5 /app/assets/javascripts/pages/projects/project.js | |
parent | ec9bb1a7deed082ef050a7275df0abd134f526f3 (diff) | |
download | gitlab-ce-d6fa67824d13fc342721e996810f2838d4706fd2.tar.gz |
Displays banner to notify users ADO is implicitly enabled
If ADO is implicitly enabled for a project due to the instance wide
setting feature or feature flag rollout then an owner or maintainer
visiting that project are going to see a banner.
Closes #50535
Diffstat (limited to 'app/assets/javascripts/pages/projects/project.js')
-rw-r--r-- | app/assets/javascripts/pages/projects/project.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/projects/project.js b/app/assets/javascripts/pages/projects/project.js index a853624e944..c93f13239ea 100644 --- a/app/assets/javascripts/pages/projects/project.js +++ b/app/assets/javascripts/pages/projects/project.js @@ -49,6 +49,13 @@ export default class Project { $(this).parents('.no-password-message').remove(); return e.preventDefault(); }); + $('.hide-auto-devops-implicitly-enabled-banner').on('click', function(e) { + const projectId = $(this).data('project-id'); + const cookieKey = `hide_auto_devops_implicitly_enabled_banner_${projectId}`; + Cookies.set(cookieKey, 'false'); + $(this).parents('.auto-devops-implicitly-enabled-banner').remove(); + return e.preventDefault(); + }); Project.projectSelectDropdown(); } |