-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI] Scheduled workflow catchup=false option (#3131)
* Update codegen instruction * Regenerate api * [UI] scheduled workflow catchup option * Show catchup in recurring run details page * Add help button to introduce swf catchup=false * Update snapshots and fix tests
- Loading branch information
Showing
14 changed files
with
424 additions
and
161 deletions.
There are no files selected for viewing
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,40 @@ | ||
import Card from '@material-ui/core/Card'; | ||
import CardContent from '@material-ui/core/CardContent'; | ||
import IconButton from '@material-ui/core/IconButton'; | ||
import { withStyles } from '@material-ui/core/styles'; | ||
import Tooltip from '@material-ui/core/Tooltip'; | ||
import HelpIcon from '@material-ui/icons/Help'; | ||
import React, { ReactNode } from 'react'; | ||
import { color, fontsize } from '../Css'; | ||
|
||
const NostyleTooltip = withStyles({ | ||
tooltip: { | ||
backgroundColor: 'transparent', | ||
border: '0 none', | ||
color: color.secondaryText, | ||
fontSize: fontsize.base, | ||
maxWidth: 220, | ||
}, | ||
})(Tooltip); | ||
|
||
interface HelpButtonProps { | ||
helpText?: ReactNode; | ||
} | ||
export const HelpButton: React.FC<HelpButtonProps> = ({ helpText }) => { | ||
return ( | ||
<NostyleTooltip | ||
title={ | ||
<Card> | ||
<CardContent>{helpText}</CardContent> | ||
</Card> | ||
} | ||
interactive={true} | ||
leaveDelay={400} | ||
placement='top' | ||
> | ||
<IconButton> | ||
<HelpIcon /> | ||
</IconButton> | ||
</NostyleTooltip> | ||
); | ||
}; |
Oops, something went wrong.