[plugin-jenkins] Add tooltip to Jenkins build rerun (#3251)

* Add tooltop to Jenkins build rerun

* Add tooltip to spelling
This commit is contained in:
Adam Harvey
2020-11-07 06:31:11 -05:00
committed by GitHub
parent 00b7b66bd8
commit a41730c6ea
3 changed files with 12 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-jenkins': minor
---
Add tooltip for Jenkins rerun button
+1
View File
@@ -191,6 +191,7 @@ toc
tolerations
Tolerations
toolsets
tooltip
touchpoints
ui
upvote
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import React, { FC } from 'react';
import { Box, IconButton, Link, Typography } from '@material-ui/core';
import { Box, IconButton, Link, Typography, Tooltip } from '@material-ui/core';
import RetryIcon from '@material-ui/icons/Replay';
import GitHubIcon from '@material-ui/icons/GitHub';
import { generatePath, Link as RouterLink } from 'react-router-dom';
@@ -179,9 +179,11 @@ const generatedColumns: TableColumn[] = [
title: 'Actions',
sorting: false,
render: (row: Partial<CITableBuildInfo>) => (
<IconButton onClick={row.onRestartClick}>
<RetryIcon />
</IconButton>
<Tooltip title="Rerun build">
<IconButton onClick={row.onRestartClick}>
<RetryIcon />
</IconButton>
</Tooltip>
),
width: '10%',
},