Update filter name header with response data.

This commit is contained in:
voussoir 2022-09-11 09:40:49 -07:00
parent a4e098136a
commit 176e5fa1e2
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -345,6 +345,7 @@ function update_filter_form(event)
// typed something else.
if (name_input.value === name)
{
name_header.innerText = response.data.name;
name_input.value = response.data.name;
}
if (conditions_input.value === conditions)
@ -360,6 +361,7 @@ function update_filter_form(event)
const filter = button.closest(".filter");
clear_error_message(filter);
const name_header = filter.querySelector(".name_header");
const name_input = filter.querySelector(".set_name_input");
const conditions_input = filter.querySelector(".set_conditions_input");
const actions_input = filter.querySelector(".set_actions_input");