Commit 9e275b14 authored by Michel Engelen's avatar Michel Engelen Committed by Filipa Lacerda

added a new conditional to add `display: none;` dynamically if the row should...

added a new conditional to add `display: none;` dynamically if the row should be hidden, indicated by the variable `rowHidden`

this solves issue #9978
parent 2cc6e6ff
......@@ -702,6 +702,10 @@ GitLabDropdown = (function() {
}
html = document.createElement('li');
if (rowHidden) {
html.style.display = 'none';
}
if (data === 'divider' || data === 'separator') {
html.className = data;
return html;
......
---
title: "Moved EE/CE code differences for `app/assets/javascripts/gl_dropdown.js` into CE"
merge_request: 28711
author: Michel Engelen
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment