Skip to content

Commit

Permalink
Merge pull request #1645 from memphisdev/RND-411-async-tasks-refactor…
Browse files Browse the repository at this point in the history
…-to-background-tasks-with-new-design

update async status
  • Loading branch information
SvetaMemphis authored Jan 21, 2024
2 parents a56ec5d + 7f63855 commit b5a44b8
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 b5a44b8

Please sign in to comment.