mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +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
|
||||||
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
|
def sidebar
|
||||||
current_task ||= current_task || nil
|
current_task ||= current_task || nil
|
||||||
current_experiment ||= current_experiment || current_task&.experiment || nil
|
current_experiment ||= current_experiment || current_task&.experiment || nil
|
||||||
|
|
Loading…
Reference in a new issue