Update filter name header with response data.
This commit is contained in:
parent
a4e098136a
commit
176e5fa1e2
1 changed files with 2 additions and 0 deletions
|
@ -345,6 +345,7 @@ function update_filter_form(event)
|
||||||
// typed something else.
|
// typed something else.
|
||||||
if (name_input.value === name)
|
if (name_input.value === name)
|
||||||
{
|
{
|
||||||
|
name_header.innerText = response.data.name;
|
||||||
name_input.value = response.data.name;
|
name_input.value = response.data.name;
|
||||||
}
|
}
|
||||||
if (conditions_input.value === conditions)
|
if (conditions_input.value === conditions)
|
||||||
|
@ -360,6 +361,7 @@ function update_filter_form(event)
|
||||||
const filter = button.closest(".filter");
|
const filter = button.closest(".filter");
|
||||||
clear_error_message(filter);
|
clear_error_message(filter);
|
||||||
|
|
||||||
|
const name_header = filter.querySelector(".name_header");
|
||||||
const name_input = filter.querySelector(".set_name_input");
|
const name_input = filter.querySelector(".set_name_input");
|
||||||
const conditions_input = filter.querySelector(".set_conditions_input");
|
const conditions_input = filter.querySelector(".set_conditions_input");
|
||||||
const actions_input = filter.querySelector(".set_actions_input");
|
const actions_input = filter.querySelector(".set_actions_input");
|
||||||
|
|
Loading…
Reference in a new issue