fix: now you cant edit the labels of nested stuff
This commit is contained in:
parent
a9c9ba0b5f
commit
201ecf82b4
|
@ -96,16 +96,18 @@ const GateRawProperty = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
let input = (() => {
|
let input = (() => {
|
||||||
|
const root = gate.props[name] === prop
|
||||||
|
const renderer = getRendererSafely()
|
||||||
const displayExternal = () =>
|
const displayExternal = () =>
|
||||||
getRendererSafely().simulation.mode === 'ic' &&
|
renderer.simulation.mode === 'ic' &&
|
||||||
gate.env === 'global' &&
|
root &&
|
||||||
!gate.template.properties.data.some(
|
!gate.template.properties.data.some(
|
||||||
(prop) => (prop as RawProp).needsUpdate
|
(prop) => (prop as RawProp).needsUpdate
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(raw.name === 'external' && !displayExternal()) ||
|
(raw.name === 'external' && !displayExternal()) ||
|
||||||
(raw.name === 'label' && !external)
|
(raw.name === 'label' && (!external || !root))
|
||||||
) {
|
) {
|
||||||
return emptyInput
|
return emptyInput
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue