Skip to content

Commit

Permalink
add shortLine to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
danalvrz committed Jun 8, 2024
1 parent 34107cb commit ee054f7
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/volto-separator-block/src/components/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const messages = defineMessages({
id: 'Separator Block',
defaultMessage: 'Separator',
},
align: {
id: 'Alignment',
defaultMessage: 'Alignment',
shortline: {
id: 'Short line',
defaultMessage: 'Short line',
},
});

Expand All @@ -35,14 +35,12 @@ export const SeparatorStyleEnhancer = ({ schema, intl }) => {
addStyling({ schema, intl });

schema.properties.styles.schema.fieldsets[0].fields = [
'shortLine',
...schema.properties.styles.schema.fieldsets[0].fields,
'align',
];
schema.properties.styles.schema.properties.align = {
widget: 'align',
title: intl.formatMessage(messages.align),
actions: ['full', 'center', 'left'],
default: 'full',
schema.properties.styles.schema.properties.shortLine = {
title: intl.formatMessage(messages.shortline),
type: 'boolean',
};

return schema;
Expand Down

0 comments on commit ee054f7

Please sign in to comment.