mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-26 01:19:33 +02:00
More units UI work
This commit is contained in:
@@ -45,7 +45,7 @@ const voltagedropinwire: GenericCalcType = {
|
||||
{
|
||||
name: 'A',
|
||||
title: 'Wire Area',
|
||||
unit: 'mm',
|
||||
unit: 'mm2',
|
||||
default: 1
|
||||
},
|
||||
|
||||
|
@@ -252,6 +252,10 @@ export default async function makeTool(
|
||||
values.outputVariable === variable.name ||
|
||||
valsBoundToPreset[variable.name] !== undefined
|
||||
}
|
||||
disableChangingUnit={
|
||||
values.outputVariable === variable.name ||
|
||||
valsBoundToPreset[variable.name] !== undefined
|
||||
}
|
||||
onOwnChange={(val) =>
|
||||
updateVarField(
|
||||
variable.name,
|
||||
|
Reference in New Issue
Block a user