Since this button is replaced by a new element in an AJAX call, nothing was focused after pressing it. So we're reusing the code we used to enable/disable budget phases, which already dealt with this issue.
4 lines
159 B
Plaintext
4 lines
159 B
Plaintext
<%= render "admin/shared/toggle_switch",
|
|
record: @phase,
|
|
new_content: render(Admin::BudgetPhases::ToggleEnabledComponent.new(@phase)) %>
|