Commit 19f3580ef493df557252e9e59acca70d728ee611
1 parent
2d20864d
Exists in
colab
and in
4 other branches
Fixed infinite reloading
Signed off by: Alessandro Palmeira <alessandro.palmeira@gmail.com>
Showing
4 changed files
with
7 additions
and
0 deletions
Show diff stats
app/controllers/repositories_controller.rb
... | ... | @@ -75,6 +75,8 @@ class RepositoriesController < ApplicationController |
75 | 75 | format.js { render action: 'unprocessed' } |
76 | 76 | elsif @processing.state == 'READY' |
77 | 77 | format.js { render action: 'load_ready_processing' } |
78 | + elsif @processing.state == 'ERROR' | |
79 | + format.js { render action: 'load_error' } | |
78 | 80 | else |
79 | 81 | format.js { render action: 'reload_processing' } |
80 | 82 | end | ... | ... |
... | ... | @@ -0,0 +1,3 @@ |
1 | +$('div#processing_information').html('<%= escape_javascript(render partial: "processing_information") %>'); | |
2 | +$('div#module_tree').html('<%= escape_javascript(render partial: "module_tree_error") %>'); | |
3 | +$('div#metric_results').html('<%= escape_javascript(render partial: "metric_results_error") %>'); | |
0 | 4 | \ No newline at end of file | ... | ... |