File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
site/src/pages/DeploySettingsPage/LicensesSettingsPage Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { Link } from "react-router-dom"
13
13
import useWindowSize from "react-use/lib/useWindowSize"
14
14
import MuiLink from "@mui/material/Link"
15
15
import { displaySuccess } from "components/GlobalSnackbar/utils"
16
+ import Tooltip from "@mui/material/Tooltip"
16
17
17
18
type Props = {
18
19
showConfetti : boolean
@@ -67,18 +68,20 @@ const LicensesSettingsPageView: FC<Props> = ({
67
68
>
68
69
Add a license
69
70
</ Button >
70
- < Button
71
- onClick = { ( ) => {
72
- if ( refreshEntitlements ) {
73
- if ( refreshEntitlements ( ) ) {
74
- displaySuccess ( "Successfully refreshed licenses" )
71
+ < Tooltip title = "Refresh license entitlements. This is done automatically every 10 minutes." >
72
+ < Button
73
+ onClick = { ( ) => {
74
+ if ( refreshEntitlements ) {
75
+ if ( refreshEntitlements ( ) ) {
76
+ displaySuccess ( "Successfully refreshed licenses" )
77
+ }
75
78
}
76
- }
77
- } }
78
- startIcon = { < RefreshIcon /> }
79
- >
80
- Refresh
81
- </ Button >
79
+ } }
80
+ startIcon = { < RefreshIcon /> }
81
+ >
82
+ Refresh
83
+ </ Button >
84
+ </ Tooltip >
82
85
</ Stack >
83
86
</ Stack >
84
87
You can’t perform that action at this time.
0 commit comments