Skip to content

Commit c9d9428

Browse files
[Widget Editor] Allowed objects also visible when type asset or document selected (#3309)
* updated the ElementTreeWidgetTypeForm * Automatic frontend build --------- Co-authored-by: ValeriaMaltseva <11871778+ValeriaMaltseva@users.noreply.github.com>
1 parent 0e2d270 commit c9d9428

747 files changed

Lines changed: 30000 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/js/src/core/modules/widget-editor/components/widget-type-form/element-tree-widget-type-form.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*/
1010

1111
import React from 'react'
12+
import { Form } from '@Pimcore/components/form/form'
13+
import { elementTypes } from '@Pimcore/types/enums/element/element-type'
1214
import { AllowedContextMenuPanel } from './components/allowed-context-menu-panel/allowed-context-menu-panel'
1315
import { AllowedObjectsPanel } from './components/allowed-objects-panel/allowed-objects-panel'
1416
import { FilterPanel } from './components/filter-panel/filter-panel'
@@ -18,7 +20,12 @@ export const ElementTreeWidgetTypeForm = (): React.JSX.Element => {
1820
return (
1921
<>
2022
<SpecificPanel />
21-
<AllowedObjectsPanel />
23+
<Form.Conditional
24+
condition={ (values) => values.elementType === elementTypes.dataObject }
25+
watchFields={ ['elementType'] }
26+
>
27+
<AllowedObjectsPanel />
28+
</Form.Conditional>
2229
<AllowedContextMenuPanel />
2330
<FilterPanel />
2431
</>

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/documentEditorIframe.html

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/entrypoints.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/exposeRemote.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/main.html

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/manifest.json

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/mf-manifest.json

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/07ca8cbc-f53f-491b-8822-0c1d2d90a44a/mf-stats.json

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)