diff --git a/src/app/WardrobePage/support/AllItemLayersSupportModal.js b/src/app/WardrobePage/support/AllItemLayersSupportModal.js index 07694a2..f585b8b 100644 --- a/src/app/WardrobePage/support/AllItemLayersSupportModal.js +++ b/src/app/WardrobePage/support/AllItemLayersSupportModal.js @@ -68,7 +68,9 @@ function BulkAddBodySpecificAssetsForm({ bulkAddProposal, onSubmit }) { const [minAssetId, setMinAssetId] = React.useState( bulkAddProposal?.minAssetId ); + const [assetIdStepValue, setAssetIdStepValue] = React.useState(1); const [numSpecies, setNumSpecies] = React.useState(55); + const [colorId, setColorId] = React.useState("8"); return ( { e.preventDefault(); - onSubmit({ minAssetId, numSpecies }); + onSubmit({ minAssetId, numSpecies, assetIdStepValue, colorId }); }} > - Bulk-add body-specific assets: + Bulk-add: @@ -124,14 +126,31 @@ function BulkAddBodySpecificAssetsForm({ bulkAddProposal, onSubmit }) { placeholder="Max ID" // Because this is an inclusive range, the offset between the numbers // is one less than the number of entries in the range. - value={minAssetId != null ? Number(minAssetId) + (numSpecies - 1) : ""} + value={ + minAssetId != null + ? Number(minAssetId) + assetIdStepValue * (numSpecies - 1) + : "" + } onChange={(e) => setMinAssetId( - e.target.value ? Number(e.target.value) - (numSpecies - 1) : null + e.target.value + ? Number(e.target.value) - assetIdStepValue * (numSpecies - 1) + : null ) } /> + + for + +