Hide disposal for non-primary products

feature/gui
Alinson S. Xavier 4 years ago
parent e797cb98e0
commit 1273110419
No known key found for this signature in database
GPG Key ID: DCA0DAD4D2F58624

@ -111,7 +111,10 @@ const ProductBlock = (props) => {
onTemplate={onInitialAmountsTemplate} onTemplate={onInitialAmountsTemplate}
/> />
<h1>Disposal</h1> <h1 style={{ display: nCenters == 0 ? "none" : "block" }}>
Disposal
</h1>
<div style={{ display: nCenters == 0 ? "none" : "block" }}>
<TextInputRow <TextInputRow
label="Disposal cost" label="Disposal cost"
unit="$/tonne" unit="$/tonne"
@ -139,6 +142,7 @@ const ProductBlock = (props) => {
validate="floatList" validate="floatList"
disabled={props.value["disposal limit (tonne)"].length > 0} disabled={props.value["disposal limit (tonne)"].length > 0}
/> />
</div>
<h1>Transportation</h1> <h1>Transportation</h1>
<TextInputRow <TextInputRow

Loading…
Cancel
Save