Skip to content

Commit

Permalink
fix: option to show bg replaced (#159)
Browse files Browse the repository at this point in the history
* fix: option to show bg replaced

* fix: size for icon on alert block on mobile version
  • Loading branch information
Wagner3UB authored May 11, 2023
1 parent 9462deb commit 57ec8a1
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
#: components/ItaliaTheme/Blocks/HeroImageLeft/HeroSidebar
#: config/Blocks/ListingOptions/defaultOptions
#: config/Blocks/ListingOptions/utils
# defaultMessage: Mostra lo sfondo del blocco
msgid "Mostra lo sfondo del blocco"
Expand Down
1 change: 1 addition & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
#: components/ItaliaTheme/Blocks/HeroImageLeft/HeroSidebar
#: config/Blocks/ListingOptions/defaultOptions
#: config/Blocks/ListingOptions/utils
# defaultMessage: Mostra lo sfondo del blocco
msgid "Mostra lo sfondo del blocco"
Expand Down
1 change: 1 addition & 0 deletions locales/fr/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
#: components/ItaliaTheme/Blocks/HeroImageLeft/HeroSidebar
#: config/Blocks/ListingOptions/defaultOptions
#: config/Blocks/ListingOptions/utils
# defaultMessage: Mostra lo sfondo del blocco
msgid "Mostra lo sfondo del blocco"
Expand Down
1 change: 1 addition & 0 deletions locales/it/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ msgstr "Mostra i filtri per percorso"

#: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
#: components/ItaliaTheme/Blocks/HeroImageLeft/HeroSidebar
#: config/Blocks/ListingOptions/defaultOptions
#: config/Blocks/ListingOptions/utils
# defaultMessage: Mostra lo sfondo del blocco
msgid "Mostra lo sfondo del blocco"
Expand Down
3 changes: 2 additions & 1 deletion locales/volto.pot
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Plone\n"
"POT-Creation-Date: 2023-05-02T13:13:30.519Z\n"
"POT-Creation-Date: 2023-05-09T13:16:36.242Z\n"
"Last-Translator: Plone i18n <[email protected]>\n"
"Language-Team: Plone i18n <[email protected]>\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -365,6 +365,7 @@ msgstr ""

#: components/ItaliaTheme/Blocks/Calendar/ListingSidebar
#: components/ItaliaTheme/Blocks/HeroImageLeft/HeroSidebar
#: config/Blocks/ListingOptions/defaultOptions
#: config/Blocks/ListingOptions/utils
# defaultMessage: Mostra lo sfondo del blocco
msgid "Mostra lo sfondo del blocco"
Expand Down
14 changes: 14 additions & 0 deletions src/config/Blocks/ListingOptions/defaultOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const messages = defineMessages({
id: 'card_bg_color',
defaultMessage: 'Colore di sfondo',
},
show_block_bg: {
id: 'Mostra lo sfondo del blocco',
defaultMessage: 'Mostra lo sfondo del blocco',
},
});

/** DEFAULT **/
Expand Down Expand Up @@ -48,6 +52,16 @@ const addDefaultAdditionalOptions = (schema, formData, intl, position = 0) => {
pos++;
}

addSchemaField(
schema,
'show_block_bg',
intl.formatMessage(messages.show_block_bg),
null,
{ type: 'boolean' },
pos,
);
pos++;

/* if (formData.variation === 'simpleCard') {
addSchemaField(
schema,
Expand Down

0 comments on commit 57ec8a1

Please sign in to comment.