Disable button when exporting & min start cycle is 0
This commit is contained in:
parent
b3715dc5df
commit
418bca79b2
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ export default function ExportModal(Props) {
|
|||
onBlur={(e) => {
|
||||
let v = parseInt(e.target.value);
|
||||
console.log(v)
|
||||
v = isNaN(v) ? 0 : Math.max(1, v);
|
||||
v = isNaN(v) ? 0 : Math.max(0, v);
|
||||
setStartCycle(v);
|
||||
}}
|
||||
onChange={v => {
|
||||
|
|
@ -111,7 +111,7 @@ export default function ExportModal(Props) {
|
|||
value={multiChannelOrbits}
|
||||
/>
|
||||
</div>
|
||||
<button onClick={async () => {
|
||||
<button disabled={exporting} onClick={async () => {
|
||||
setStrudelMaxPolyphony(maxPolyphony)
|
||||
setStrudelMultiChannelOrbits(multiChannelOrbits)
|
||||
setExporting(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue