Skip to content

Commit

Permalink
Add classname to edit and add field modal in schemawidget.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Dec 17, 2024
1 parent 7001f46 commit 613fdad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/volto/src/components/manage/Widgets/SchemaWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,7 @@ class SchemaWidget extends Component {
<ModalForm
onSubmit={this.onAddField}
onCancel={this.onCancel}
className={`field-${slugify(this.state.addField || 'label_text_field')}`}
onChangeFormData={(data) => {
this.setState({
addField: data.factory,
Expand Down Expand Up @@ -1782,6 +1783,7 @@ class SchemaWidget extends Component {
onSubmit={this.onEditField}
onCancel={this.onCancel}
title={`${this.props.intl.formatMessage(messages.editField)}: ${editFieldType}`}
className={`factory-${slugify(editFieldType)}`}
formData={{
...this.props.value.properties[this.state.editField.id],
id: this.state.editField.id,
Expand Down

0 comments on commit 613fdad

Please sign in to comment.