Added display for triggers
This commit is contained in:
parent
bc7e0767d6
commit
bb934ee859
13 changed files with 154 additions and 28 deletions
|
@ -9,6 +9,7 @@ import ViewColumnIcon from "@mui/icons-material/ViewColumn";
|
|||
import PendingIcon from "@mui/icons-material/Pending";
|
||||
import VisibilityIcon from "@mui/icons-material/Visibility";
|
||||
import DoNotDisturbIcon from "@mui/icons-material/DoNotDisturb";
|
||||
import TimerIcon from "@mui/icons-material/Timer";
|
||||
import ReplayIcon from "@mui/icons-material/Replay";
|
||||
|
||||
function statusIcon(status) {
|
||||
|
@ -25,6 +26,8 @@ function statusIcon(status) {
|
|||
return <DoNotDisturbIcon color="warning" />;
|
||||
case jobStatus.QUEUED:
|
||||
return <ViewColumnIcon color="secondary" />;
|
||||
case jobStatus.TIMER:
|
||||
return <TimerIcon color="primary" />;
|
||||
default:
|
||||
return <ReplayIcon />;
|
||||
}
|
||||
|
@ -42,6 +45,7 @@ export function useJobExtra() {
|
|||
|
||||
function pipelineIcon(pl) {
|
||||
const jobStatuses = pipelineJobs(pl).map(({ status }) => status);
|
||||
if (pl.pendingTriggers.length > 0) return statusIcon(jobStatus.TIMER);
|
||||
if (jobStatuses.includes(jobStatus.ERROR))
|
||||
return statusIcon(jobStatus.ERROR);
|
||||
if (jobStatuses.includes(jobStatus.ACTIVE))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue