mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30:12 +01:00
fix #1286. The sidebar now updates correctly after update of project settings
This commit is contained in:
parent
dca610de59
commit
b95523fe56
1 changed files with 1 additions and 9 deletions
|
|
@ -194,21 +194,13 @@ class ProjectsController < ApplicationController
|
|||
if @saved
|
||||
@project.transition_to(@new_state) if @state_changed
|
||||
if boolean_param('wants_render')
|
||||
if (@project.hidden?)
|
||||
@project_project_hidden_todo_counts = Hash.new
|
||||
@project_project_hidden_todo_counts[@project.id] = @project.reload().todos.active_or_hidden.count
|
||||
else
|
||||
@project_not_done_counts = Hash.new
|
||||
@project_not_done_counts[@project.id] = @project.reload().todos.active_or_hidden.count
|
||||
end
|
||||
@contexts = current_user.contexts
|
||||
update_state_counts
|
||||
init_data_for_sidebar
|
||||
|
||||
template = 'projects/update.js.erb'
|
||||
|
||||
# TODO: are these params ever set? or is this dead code?
|
||||
|
||||
# TODO: are these params ever set? or is this dead code?
|
||||
elsif boolean_param('update_status')
|
||||
template = 'projects/update_status.js.rjs'
|
||||
elsif boolean_param('update_default_context')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue