Skip to content

Commit

Permalink
update async status
Browse files Browse the repository at this point in the history
  • Loading branch information
svetaStrech committed Jan 21, 2024
1 parent 740611e commit 7f63855
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ui_src/src/components/asyncTasks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,9 @@ const AsyncTasks = ({ overView, children }) => {
((!showMore && index < 3) || showMore) && (
<div>
<div className="task-item" key={index}>
{task?.status === 'running' && (
<span className="task-status">
<Badge status="success" />
</span>
)}
<span className="task-status">
<Badge status={task?.status === 'completed' ? 'success' : task?.status === 'failed' ? 'error' : 'processing'} />
</span>
<div>
<TaskIcon alt="taskIcon" />
</div>
Expand Down
3 changes: 3 additions & 0 deletions ui_src/src/components/asyncTasks/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@
cursor: pointer;
}
}
.ant-badge-status-processing {
background-color: var(--purple);
}

0 comments on commit 7f63855

Please sign in to comment.