diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 12:08:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 12:08:55 +0300 |
commit | be37a0ee5e3e3dbb967266248f0f46f14a9931e2 (patch) | |
tree | 8fd575a36933fb847a6f92ff76d9c1ad908a3f7b /app/assets/javascripts | |
parent | 6305f1dc00870f6e0635e2e850538a00bbd00bda (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/pages/projects/pipelines/init_pipelines.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/assets/javascripts/pages/projects/pipelines/init_pipelines.js b/app/assets/javascripts/pages/projects/pipelines/init_pipelines.js index ba4ae04ab3d..ade6908c4a5 100644 --- a/app/assets/javascripts/pages/projects/pipelines/init_pipelines.js +++ b/app/assets/javascripts/pages/projects/pipelines/init_pipelines.js @@ -1,6 +1,18 @@ import Pipelines from '~/pipelines'; export default () => { + const mergeRequestListToggle = document.querySelector('.js-toggle-mr-list'); + const truncatedMergeRequestList = document.querySelector('.js-truncated-mr-list'); + const fullMergeRequestList = document.querySelector('.js-full-mr-list'); + + if (mergeRequestListToggle) { + mergeRequestListToggle.addEventListener('click', e => { + e.preventDefault(); + truncatedMergeRequestList.classList.toggle('hide'); + fullMergeRequestList.classList.toggle('hide'); + }); + } + const { controllerAction } = document.querySelector('.js-pipeline-container').dataset; const pipelineStatusUrl = `${document .querySelector('.js-pipeline-tab-link a') |