forked from distribworks/dkron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Miguel Sousa
authored and
Miguel Sousa
committed
Mar 10, 2021
1 parent
20ab436
commit 31c6324
Showing
7 changed files
with
107 additions
and
70 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as React from 'react'; | ||
import { FC } from 'react'; | ||
import Icon from '@material-ui/icons/NewReleases'; | ||
|
||
import CardWithIcon from './CardWithIcon'; | ||
|
||
interface Props { | ||
value?: string; | ||
} | ||
|
||
const PristineJobs: FC<Props> = ({ value }) => { | ||
return ( | ||
<CardWithIcon | ||
to='/jobs?filter={"status":"pristine"}' | ||
icon={Icon} | ||
title='Pristine Jobs' | ||
subtitle={value} | ||
/> | ||
); | ||
}; | ||
|
||
export default PristineJobs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
import * as React from "react"; | ||
import SuccessIcon from '@material-ui/icons/CheckCircle'; | ||
import FailedIcon from '@material-ui/icons/Cancel'; | ||
import PristineIcon from '@material-ui/icons/Timer'; | ||
import { Tooltip } from '@material-ui/core'; | ||
|
||
const StatusField = (props: any) => { | ||
return (props.record[props.source] === 'success' ? <Tooltip title="Success"><SuccessIcon htmlColor="green" /></Tooltip> : <Tooltip title="Success"><FailedIcon htmlColor="red" /></Tooltip>); | ||
if (props.record[props.source] === 'success') { | ||
return <Tooltip title="Success"><SuccessIcon htmlColor="green" /></Tooltip> | ||
} else if (props.record[props.source] === 'failed') { | ||
return <Tooltip title="Error"><FailedIcon htmlColor="red" /></Tooltip> | ||
} else { | ||
return <Tooltip title="Waiting to Run"><PristineIcon htmlColor="blue" /></Tooltip> | ||
} | ||
}; | ||
|
||
export default StatusField; |