BranchGraph now loads async
Centralized keyboard and drag events for BranchGraph
This commit is contained in:
parent
40576b8709
commit
e1282d507f
6 changed files with 123 additions and 95 deletions
|
@ -83,9 +83,19 @@ class ProjectsController < ProjectResourceController
|
|||
end
|
||||
|
||||
def graph
|
||||
graph = Gitlab::Graph::JsonBuilder.new(project)
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json do
|
||||
graph = Gitlab::Graph::JsonBuilder.new(project)
|
||||
#@days_json, @commits_json = graph.days_json, graph.commits_json
|
||||
render :text => graph.to_json
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
@days_json, @commits_json = graph.days_json, graph.commits_json
|
||||
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue