Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
176187a0
Commit
176187a0
authored
Oct 01, 2021
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added severity icons to widget extension
Closes
https://gitlab.com/gitlab-org/gitlab/-/issues/341044
parent
97455b6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
app/assets/javascripts/vue_merge_request_widget/constants.js
app/assets/javascripts/vue_merge_request_widget/constants.js
+18
-0
No files found.
app/assets/javascripts/vue_merge_request_widget/constants.js
View file @
176187a0
...
...
@@ -99,6 +99,12 @@ export const EXTENSION_ICONS = {
neutral
:
'
neutral
'
,
error
:
'
error
'
,
notice
:
'
notice
'
,
severityCritical
:
'
severityCritical
'
,
severityHigh
:
'
severityHigh
'
,
severityMedium
:
'
severityMedium
'
,
severityLow
:
'
severityLow
'
,
severityInfo
:
'
severityInfo
'
,
severityUnknown
:
'
severityUnknown
'
,
};
export
const
EXTENSION_ICON_NAMES
=
{
...
...
@@ -108,6 +114,12 @@ export const EXTENSION_ICON_NAMES = {
neutral
:
'
status-neutral
'
,
error
:
'
status-alert
'
,
notice
:
'
status-alert
'
,
severityCritical
:
'
severity-critical
'
,
severityHigh
:
'
severity-high
'
,
severityMedium
:
'
severity-medium
'
,
severityLow
:
'
severity-low
'
,
severityInfo
:
'
severity-info
'
,
severityUnknown
:
'
severity-unknown
'
,
};
export
const
EXTENSION_ICON_CLASS
=
{
...
...
@@ -117,6 +129,12 @@ export const EXTENSION_ICON_CLASS = {
neutral
:
'
gl-text-gray-400
'
,
error
:
'
gl-text-red-500
'
,
notice
:
'
gl-text-gray-500
'
,
severityCritical
:
'
gl-text-red-800
'
,
severityHigh
:
'
gl-text-red-500
'
,
severityMedium
:
'
gl-text-orange-400
'
,
severityLow
:
'
gl-text-orange-300
'
,
severityInfo
:
'
gl-text-blue-400
'
,
severityUnknown
:
'
gl-text-gray-400
'
,
};
export
{
STATE_MACHINE
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment