Commit 06e9e043 authored by Mark Florian's avatar Mark Florian

Sort Dependency List by severity by default

Part of [Update dependencies table UI][1].

[1]: https://gitlab.com/gitlab-org/gitlab/-/issues/195928
parent 919fd2dc
...@@ -15,6 +15,6 @@ export default () => ({ ...@@ -15,6 +15,6 @@ export default () => ({
generatedAt: '', generatedAt: '',
}, },
filter: FILTER.all, filter: FILTER.all,
sortField: 'name', sortField: 'severity',
sortOrder: SORT_ORDER.ascending, sortOrder: SORT_ORDER.ascending,
}); });
---
title: Sort Dependency List by severity by default
merge_request: 28654
author:
type: changed
...@@ -10,14 +10,14 @@ exports[`DependenciesActions component matches the snapshot 1`] = ` ...@@ -10,14 +10,14 @@ exports[`DependenciesActions component matches the snapshot 1`] = `
<gl-dropdown-stub <gl-dropdown-stub
class="flex-grow-1 text-center" class="flex-grow-1 text-center"
right="" right=""
text="Component name" text="Severity"
> >
<gl-dropdown-item-stub> <gl-dropdown-item-stub>
<span <span
class="d-flex" class="d-flex"
> >
<gl-icon-stub <gl-icon-stub
class="flex-shrink-0 append-right-4" class="flex-shrink-0 append-right-4 invisible"
name="mobile-issue-close" name="mobile-issue-close"
size="16" size="16"
/> />
...@@ -45,7 +45,7 @@ exports[`DependenciesActions component matches the snapshot 1`] = ` ...@@ -45,7 +45,7 @@ exports[`DependenciesActions component matches the snapshot 1`] = `
class="d-flex" class="d-flex"
> >
<gl-icon-stub <gl-icon-stub
class="flex-shrink-0 append-right-4 invisible" class="flex-shrink-0 append-right-4"
name="mobile-issue-close" name="mobile-issue-close"
size="16" size="16"
/> />
......
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