Skip to content

show correct number in badge - #2071

Closed
C-Otto wants to merge 1 commit into
TracksApp:masterfrom
C-Otto:fix-2058
Closed

show correct number in badge#2071
C-Otto wants to merge 1 commit into
TracksApp:masterfrom
C-Otto:fix-2058

Conversation

@C-Otto

@C-Otto C-Otto commented Mar 18, 2017

Copy link
Copy Markdown
Contributor

fixes #2058

Please advice on how to clean this up, and add proper tests!

The actual badge number (which is shown on page reload) is defined in ProjectsController#show. Similar code (duplicated?) is in ContextController#show.

When toggling an action as stated in #2058 the badge number is determined using TodosController#determine_down_count. Of the 30 lines or so, only a SINGLE result is tested.

@tomato42 tomato42 mentioned this pull request May 12, 2018
@mattr- mattr- closed this Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI: Badge/Counter (upper left) switches between counting pending tasks

2 participants