Skip to content

Commit

Permalink
[plugin-jenkins] Add tooltip to Jenkins build rerun (#3251)
Browse files Browse the repository at this point in the history
* Add tooltop to Jenkins build rerun

* Add tooltip to spelling
  • Loading branch information
adamdmharvey committed Nov 7, 2020
1 parent 00b7b66 commit a41730c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-emus-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/plugin-jenkins': minor
---

Add tooltip for Jenkins rerun button
1 change: 1 addition & 0 deletions .github/styles/vocab.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ toc
tolerations
Tolerations
toolsets
tooltip
touchpoints
ui
upvote
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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%',
},
Expand Down

0 comments on commit a41730c

Please sign in to comment.