mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
SCI-5223 return the missing method into controller
This commit is contained in:
parent
af37ea271f
commit
ef880d8373
1 changed files with 11 additions and 0 deletions
|
@ -62,6 +62,17 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
def dt_state_load
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
render json: {
|
||||
state: current_team.current_view_state(current_user)
|
||||
.state.dig('projects', 'table')
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def sidebar
|
||||
current_task ||= current_task || nil
|
||||
current_experiment ||= current_experiment || current_task&.experiment || nil
|
||||
|
|
Loading…
Reference in a new issue