Skip to content

Hide scanner filter vendor header when there's only the default vendor

Daniel Tian requested to merge 330248-scanner-filter-header into master

What does this MR do?

On the vulnerability report, there is a scanner filter dropdown that filter the vulnerability list:

ksnip_20210608-152829

Currently, this dropdown always shows the vendor name (the dropdown item in bold) even if GitLab is the only shown vendor. This MR changes it so that if there are no custom vendors and GitLab is the only vendor, the header and the divider are hidden and the dropdown items are shown as a flat list. If there are custom vendors, the behavior is unchanged and the vendor header and divider are shown.

Master This MR
ksnip_20210608-153223 ksnip_20210608-153100

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #330248 (closed)

Merge request reports

Loading