Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license Pimcore Open Core License (POCL)
*/

import React, { useRef } from 'react'
import React from 'react'
import { Dropdown } from 'antd'
import cn from 'classnames'
import { Icon } from '@Pimcore/components/icon/icon'
Expand Down Expand Up @@ -48,19 +48,10 @@ export const EditableOverlay = ({
const highlightEditables = useHighlightEditables()
const { inheritanceMenuItems, inheritanceTooltip } = useInheritanceMenu({ onOverwrite })

const wasEverInheritedRef = useRef(isInherited)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm... But isn't then the inheritance overlay case also editable? I guess we need to find another solution?

if (isInherited && !wasEverInheritedRef.current) {
wasEverInheritedRef.current = true
}

if (isNil(children)) {
return null
}

if (!wasEverInheritedRef.current && !highlightEditables) {
return <>{children}</>
}

return (
<div
className={ cn(
Expand Down
23 changes: 23 additions & 0 deletions public/build/16241ae4-f90e-44fc-b057-b86e0e2ee230/entrypoints.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

807 changes: 807 additions & 0 deletions public/build/16241ae4-f90e-44fc-b057-b86e0e2ee230/manifest.json

Large diffs are not rendered by default.

Loading