Disable button when exporting & min start cycle is 0

This commit is contained in:
Nikita
2025-10-19 23:05:33 +03:00
parent b3715dc5df
commit 418bca79b2
+2 -2
View File
@@ -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)