Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
05d3f608
Unverified
Commit
05d3f608
authored
Jan 31, 2024
by
Zzm0809
Committed by
GitHub
Jan 31, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix] fix devops status render bug (#3106)
parent
c1864545
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
StatusTag.tsx
dinky-web/src/components/JobTags/StatusTag.tsx
+8
-2
No files found.
dinky-web/src/components/JobTags/StatusTag.tsx
View file @
05d3f608
...
...
@@ -20,6 +20,7 @@
import
{
StatusTagProps
}
from
'@/components/JobTags/data'
;
import
{
BackPressureStatus
,
JOB_STATUS
}
from
'@/pages/DevOps/constants'
;
import
{
AlertTwoTone
,
CheckCircleOutlined
,
ClockCircleOutlined
,
InfoCircleOutlined
,
...
...
@@ -52,7 +53,12 @@ const StatusTag = (props: StatusTagProps) => {
color
:
'blue'
,
text
:
'FINISHED'
};
case
JOB_STATUS
.
FAILED
:
return
{
icon
:
<
AlertTwoTone
twoToneColor=
{
'red'
}
/>,
color
:
'red'
,
text
:
'FAILED'
};
case
JOB_STATUS
.
CANCELED
:
return
{
icon
:
<
MinusCircleOutlined
/>,
...
...
@@ -103,7 +109,7 @@ const StatusTag = (props: StatusTagProps) => {
};
default
:
return
{
icon
:
<
SyncOutlined
spin
/>,
icon
:
<
QuestionCircleOutlined
/>,
color
:
'default'
,
text
:
'UNKNOWN'
};
...
...
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