Skip to content

Commit

Permalink
Merge pull request #1996 from tf/hide-heading-position
Browse files Browse the repository at this point in the history
Do not display single item position drop down
  • Loading branch information
tf authored Sep 1, 2023
2 parents cb5b52f + 9e786ac commit 3138f81
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ import {
ConfigurationEditorTabView.groups.define('ContentElementPosition', function() {
const contentElement = this.model.parent;

this.input('position', SelectInputView, {
attributeTranslationKeyPrefixes: ['pageflow_scrolled.editor.common_content_element_attributes'],
values: contentElement.getAvailablePositions()
});
if (contentElement.getAvailablePositions().length > 1) {
this.input('position', SelectInputView, {
attributeTranslationKeyPrefixes: ['pageflow_scrolled.editor.common_content_element_attributes'],
values: contentElement.getAvailablePositions()
});
}
this.input('width', SliderInputView, {
attributeTranslationKeyPrefixes: ['pageflow_scrolled.editor.common_content_element_attributes'],
displayText: value => [
Expand Down

0 comments on commit 3138f81

Please sign in to comment.