Skip to content

Commit

Permalink
Merge pull request #3507 from neos/bugfix/3483-creationDialogHideElem…
Browse files Browse the repository at this point in the history
…ents

BUGFIX: CreationDialog hideable elements
  • Loading branch information
Sebobo authored May 30, 2023
2 parents 5c52e08 + b0db4b6 commit f2d18d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/neos-ts-interfaces/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export interface NodeType {
[propName: string]: {
type?: string;
ui?: {
hidden?: boolean|string;
label?: string;
editor?: string;
editorOptions?: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ export default class NodeCreationDialog extends PureComponent {
return Object.keys(configuration.elements).reduce(
(result, elementName, index) => {
const element = configuration.elements[elementName];
if (element) {
const isHidden = $get('ui.hidden', element);
if (element && !isHidden) {
result.push(
this.renderElement(elementName, element, index === 0)
);
Expand Down

0 comments on commit f2d18d5

Please sign in to comment.