mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
feat(SettingsBar): make reload easier for user
This commit is contained in:
parent
37163b6701
commit
624ab8a806
1 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ export default class SettingsBar extends React.PureComponent {
|
|||
onAccessTokenChange(accessToken)
|
||||
this.setState({
|
||||
accessToken: '',
|
||||
accessTokenHint: 'Your token is saved, will work after reloading the page!',
|
||||
accessTokenHint: <span><a href="#" onClick={() => window.location.reload()}>Reload</a> to activate!</span>,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
@ -126,7 +126,7 @@ export default class SettingsBar extends React.PureComponent {
|
|||
const { setCompressSingleton } = this.props
|
||||
setCompressSingleton(compress)
|
||||
this.setState({
|
||||
compressHint: 'Saved, reload page to apply!',
|
||||
compressHint: <span>Saved, <a href="#" onClick={() => window.location.reload()}>reload</a> to apply.</span>,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue