BigW Consortium Gitlab
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 the `dashboard_spec` and the `header_spec`. * The naming conventions for `sidebar` and `right_sidebar` were a little confusing since they were named the opposite in their `specs`. 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 ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5724
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
behaviors | Loading commit data... | |
u2f | Loading commit data... | |
abuse_reports.html.haml | Loading commit data... | |
application.html.haml | Loading commit data... | |
awards_handler.html.haml | Loading commit data... | |
comments.html.haml | Loading commit data... | |
dashboard.html.haml | Loading commit data... | |
emoji_menu.js | Loading commit data... | |
event_filter.html.haml | Loading commit data... | |
gl_dropdown.html.haml | Loading commit data... | |
gl_field_errors.html.haml | Loading commit data... | |
header.html.haml | Loading commit data... | |
issuable.html.haml | Loading commit data... | |
issue_note.html.haml | Loading commit data... | |
issue_sidebar_label.html.haml | Loading commit data... | |
issues_show.html.haml | Loading commit data... | |
line_highlighter.html.haml | Loading commit data... | |
merge_request_tabs.html.haml | Loading commit data... | |
merge_requests_show.html.haml | Loading commit data... | |
new_branch.html.haml | Loading commit data... | |
project_title.html.haml | Loading commit data... | |
projects.json | Loading commit data... | |
right_sidebar.html.haml | Loading commit data... | |
search_autocomplete.html.haml | Loading commit data... | |
todos.json | Loading commit data... | |
zen_mode.html.haml | Loading commit data... |