mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-14 19:36:24 +00:00
Add delay on annoying tooltips. Add more characters to default token.
This commit is contained in:
parent
94d1f4a51f
commit
243690899e
@ -63,10 +63,10 @@ robosats_commit_cache = {}
|
|||||||
@ring.dict(robosats_commit_cache, expire=3600)
|
@ring.dict(robosats_commit_cache, expire=3600)
|
||||||
def get_commit_robosats():
|
def get_commit_robosats():
|
||||||
|
|
||||||
stream = os.popen('git log -n 1 --pretty=format:"%H"')
|
commit = os.popen('git log -n 1 --pretty=format:"%H"')
|
||||||
lnd_version = stream.read()
|
commit_hash = commit.read()
|
||||||
|
|
||||||
return lnd_version
|
return commit_hash
|
||||||
|
|
||||||
premium_percentile = {}
|
premium_percentile = {}
|
||||||
@ring.dict(premium_percentile, expire=300)
|
@ring.dict(premium_percentile, expire=300)
|
||||||
|
@ -184,7 +184,7 @@ export default class MakerPage extends Component {
|
|||||||
</Grid>
|
</Grid>
|
||||||
<Grid containter xs={12} alignItems="stretch" style={{ display: "flex" }}>
|
<Grid containter xs={12} alignItems="stretch" style={{ display: "flex" }}>
|
||||||
<div style={{maxWidth:140}}>
|
<div style={{maxWidth:140}}>
|
||||||
<Tooltip placement="top" enterTouchDelay="0" title="Amount of fiat to exchange for bitcoin">
|
<Tooltip placement="top" enterTouchDelay="500" enterDelay="700" enterNextDelay="2000" title="Amount of fiat to exchange for bitcoin">
|
||||||
<TextField
|
<TextField
|
||||||
error={this.state.amount <= 0}
|
error={this.state.amount <= 0}
|
||||||
helperText={this.state.amount <= 0 ? 'Invalid' : null}
|
helperText={this.state.amount <= 0 ? 'Invalid' : null}
|
||||||
@ -217,7 +217,7 @@ export default class MakerPage extends Component {
|
|||||||
</Grid>
|
</Grid>
|
||||||
<br/>
|
<br/>
|
||||||
<Grid item xs={12} align="center">
|
<Grid item xs={12} align="center">
|
||||||
<Tooltip placement="top" enterTouchDelay="0" title="Enter your prefered payment methods">
|
<Tooltip placement="top" enterTouchDelay="500" enterDelay="700" enterNextDelay="2000" title="Enter your prefered payment methods">
|
||||||
<TextField
|
<TextField
|
||||||
sx={{width:240}}
|
sx={{width:240}}
|
||||||
label="Payment Method(s)"
|
label="Payment Method(s)"
|
||||||
@ -242,7 +242,7 @@ export default class MakerPage extends Component {
|
|||||||
</div>
|
</div>
|
||||||
</FormHelperText>
|
</FormHelperText>
|
||||||
<RadioGroup row defaultValue="relative">
|
<RadioGroup row defaultValue="relative">
|
||||||
<Tooltip placement="top" enterTouchDelay="0" title="Let the price move with the market">
|
<Tooltip placement="top" enterTouchDelay="0" enterDelay="1000" enterNextDelay="2000" title="Let the price move with the market">
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="relative"
|
value="relative"
|
||||||
control={<Radio color="primary"/>}
|
control={<Radio color="primary"/>}
|
||||||
@ -251,7 +251,7 @@ export default class MakerPage extends Component {
|
|||||||
onClick={this.handleClickRelative}
|
onClick={this.handleClickRelative}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip placement="top" enterTouchDelay="0" title="Set a fix amount of satoshis">
|
<Tooltip placement="top" enterTouchDelay="0" enterDelay="1000" enterNextDelay="2000" title="Set a fix amount of satoshis">
|
||||||
<FormControlLabel
|
<FormControlLabel
|
||||||
value="explicit"
|
value="explicit"
|
||||||
control={<Radio color="secondary"/>}
|
control={<Radio color="secondary"/>}
|
||||||
|
@ -28,7 +28,7 @@ export default class UserGenPage extends Component {
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
token: this.genBase62Token(34),
|
token: this.genBase62Token(36),
|
||||||
openInfo: false,
|
openInfo: false,
|
||||||
loadingRobot: true,
|
loadingRobot: true,
|
||||||
tokenHasChanged: false,
|
tokenHasChanged: false,
|
||||||
@ -88,7 +88,7 @@ export default class UserGenPage extends Component {
|
|||||||
|
|
||||||
handleClickNewRandomToken=()=>{
|
handleClickNewRandomToken=()=>{
|
||||||
this.setState({
|
this.setState({
|
||||||
token: this.genBase62Token(34),
|
token: this.genBase62Token(36),
|
||||||
tokenHasChanged: true,
|
tokenHasChanged: true,
|
||||||
copied: true,
|
copied: true,
|
||||||
});
|
});
|
||||||
@ -209,7 +209,7 @@ export default class UserGenPage extends Component {
|
|||||||
<span> Generate Robot</span>
|
<span> Generate Robot</span>
|
||||||
</Button>
|
</Button>
|
||||||
:
|
:
|
||||||
<Tooltip enterTouchDelay="0" title="You must enter a new token first">
|
<Tooltip enterTouchDelay="0" enterDelay="500" enterNextDelay="2000" title="You must enter a new token first">
|
||||||
<div>
|
<div>
|
||||||
<Button disabled={true} type="submit" size='small' >
|
<Button disabled={true} type="submit" size='small' >
|
||||||
<SmartToyIcon sx={{width:18, height:18}} />
|
<SmartToyIcon sx={{width:18, height:18}} />
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user