Add todo toggle event
What does this MR do?
Adds a custom jQuery event todo:toggle
to detect when a new todo is added so that the respective todo counters (header navigation and sidebar) can update as needed
Are there points in the code the reviewer needs to double check?
- I wasn't sure whether each
spec
should be modularized based on the html templates or whether they should be separated based on function. There are some crossovers between thedashboard_spec
and theheader_spec
. - The naming conventions for
sidebar
andright_sidebar
were a little confusing since they were named the opposite in theirspecs
. I made a few assumptions and named a few files based on what I thought they should be named. I'd be happy to change it to something else though😄
Why was this MR needed?
This resolves an existing issue where the todo count on the sidebar would not update (until refresh) and refactors the existing methods that are used to update the todo counters (header navigation and sidebar)
What are the relevant issue numbers?
Closes #20140 (closed)
Does this MR meet the acceptance criteria?
-
CHANGELOG entry added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the style guides -
Branch has no merge conflicts with master
(if you do - rebase it please) -
Squashed related commits together