Skip to content

Commit

Permalink
Merge pull request #3536 from grebaldi/bugfix/1571/asset-editor-witho…
Browse files Browse the repository at this point in the history
…ut-media-browser

BUGFIX: Disable asset search through asset editor when media browser is disabled
  • Loading branch information
markusguenther authored Dec 18, 2023
2 parents ddc4274 + f37bb20 commit f5c3c50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/neos-ui-editors/src/Editors/AssetEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ export default class AssetEditor extends PureComponent {
<SelectBox
optionValueField="identifier"
loadingLabel={this.props.i18nRegistry.translate('Neos.Neos:Main:loading')}
displaySearchBox={true}
displaySearchBox={this.isFeatureEnabled('mediaBrowser')}
ListPreviewElement={AssetOption}
placeholder={this.props.i18nRegistry.translate(this.props.placeholder)}
options={this.props.value ? this.state.options : this.state.searchOptions}
Expand All @@ -265,7 +265,7 @@ export default class AssetEditor extends PureComponent {
dndType={dndTypes.MULTISELECT}
optionValueField="identifier"
loadingLabel={this.props.i18nRegistry.translate('Neos.Neos:Main:loading')}
displaySearchBox={true}
displaySearchBox={this.isFeatureEnabled('mediaBrowser')}
ListPreviewElement={AssetOption}
placeholder={this.props.i18nRegistry.translate(this.props.placeholder)}
options={this.state.options || []}
Expand Down

0 comments on commit f5c3c50

Please sign in to comment.