add: Introduce increment and decrement buttons for workflow's seeds

master
Abdullah Alfaraj 2023-12-09 15:53:56 +03:00
parent cd0bc2747d
commit 16e087f9c6
1 changed files with 26 additions and 0 deletions

View File

@ -1035,6 +1035,32 @@ function renderInput(
console.log(`${name}: ${event.target.value}`)
}}
></sp-textfield>
<button
style={{
width: '26px',
}}
className="btnSquare"
onClick={() => {
inputs[name] = (
BigInt(inputs[name]) - BigInt(1)
).toString()
}}
>
{'<'}
</button>
<button
style={{
width: '26px',
}}
className="btnSquare"
onClick={() => {
inputs[name] = (
BigInt(inputs[name]) + BigInt(1)
).toString()
}}
>
{'>'}
</button>
<sp-checkbox
title="randomize seed before generation"
value={store.data.is_random_seed[node_id]}