From 508549e5d6324f5983f91208420defb947b238ca Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Thu, 2 Feb 2023 10:23:14 +0100 Subject: [PATCH 1/2] add modal property to IActionSchema --- src/plone/base/interfaces/controlpanel.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plone/base/interfaces/controlpanel.py b/src/plone/base/interfaces/controlpanel.py index 5d147dc..4e31c21 100644 --- a/src/plone/base/interfaces/controlpanel.py +++ b/src/plone/base/interfaces/controlpanel.py @@ -1954,6 +1954,13 @@ class IActionSchema(Interface): required=True, ) + modal = schema.Text( + title=_("action_modal_settings", default="Settings for pat-plone-modal"), + required=False, + constraint=validate_json, + default=dump_json_to_text({}), + ) + class INewActionSchema(Interface): From 6a4659b987a5d4025e540331c8a82c052f56d691 Mon Sep 17 00:00:00 2001 From: Peter Mathis Date: Thu, 2 Feb 2023 10:24:59 +0100 Subject: [PATCH 2/2] changenote --- news/27.bugfix | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 news/27.bugfix diff --git a/news/27.bugfix b/news/27.bugfix new file mode 100644 index 0000000..12369da --- /dev/null +++ b/news/27.bugfix @@ -0,0 +1,2 @@ +Add `modal` property to `IActionSchema`. +[petschki]