Merge branch 'dev' of github.com:danielyxie/bitburner into dev

This commit is contained in:
Olivier Gagnon 2021-10-30 12:34:19 -04:00
commit d031a68fd2
2 changed files with 3 additions and 2 deletions

@ -70,8 +70,9 @@ export function GoPublicModal(props: IProps): React.ReactElement {
type="number" type="number"
placeholder="Shares to issue" placeholder="Shares to issue"
onKeyDown={onKeyDown} onKeyDown={onKeyDown}
/> />
<Button sx={{ mx: 1 }} onClick={goPublic}> <Button disabled={shares < 0||shares>corp.numShares} sx={{ mx: 1 }} onClick={goPublic}>
Go Public Go Public
</Button> </Button>
</Box> </Box>

@ -67,7 +67,7 @@ export function WorkerScriptAccordion(props: IProps): React.ReactElement {
return ( return (
<> <>
<ListItemButton onClick={() => setOpen((old) => !old)} component={Paper}> <ListItemButton onClick={() => setOpen((old) => !old)} component={Paper}>
<ListItemText primary={<Typography> {props.workerScript.name}</Typography>} /> <ListItemText primary={<Typography> {props.workerScript.name} {JSON.stringify(props.workerScript.args)}</Typography>} />
{open ? <ExpandLess color="primary" /> : <ExpandMore color="primary" />} {open ? <ExpandLess color="primary" /> : <ExpandMore color="primary" />}
</ListItemButton> </ListItemButton>
<Collapse in={open} timeout={0} unmountOnExit> <Collapse in={open} timeout={0} unmountOnExit>