compose: Add container parameter to functions.

This commit introduces a new container parameter for functions that
can be used for both compose and edit mode. It provides the function
with information about the context in which it is being used.
This commit is contained in:
Daniil Fadeev
2023-05-08 17:29:13 +04:00
committed by Tim Abbott
parent 815aeccd04
commit 209e9edd9d
5 changed files with 39 additions and 21 deletions

View File

@@ -474,7 +474,8 @@ export function initialize() {
`.${CSS.escape(compose_banner.CLASSNAMES.wildcard_warning)} .compose_banner_action_button`,
(event) => {
event.preventDefault();
compose_validate.clear_wildcard_warnings();
const {$banner_container} = get_input_info(event);
compose_validate.clear_wildcard_warnings($banner_container);
compose_validate.set_user_acknowledged_wildcard_flag(true);
finish();
},