From 461b16a9ce68a9108f8c77e101a4cf05e745d7dd Mon Sep 17 00:00:00 2001 From: Mirek Simek Date: Mon, 21 Oct 2024 18:03:36 +0200 Subject: [PATCH] passing extra args to form config (#242) --- oarepo_ui/resources/resource.py | 2 ++ setup.cfg | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/oarepo_ui/resources/resource.py b/oarepo_ui/resources/resource.py index 7d066b41..5640e63f 100644 --- a/oarepo_ui/resources/resource.py +++ b/oarepo_ui/resources/resource.py @@ -150,7 +150,9 @@ def form_config(self): self.run_components( "form_config", form_config=form_config, + args = resource_requestctx.args, view_args=resource_requestctx.view_args, + identity=g.identity, ) return form_config diff --git a/setup.cfg b/setup.cfg index a14a51bd..799603d6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-ui -version = 5.2.15 +version = 5.2.16 description = UI module for invenio 3.5+ long_description = file: README.md long_description_content_type = text/markdown