diff options
author | Godin <mandrikov@gmail.com> | 2010-10-27 18:50:45 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-10-27 18:50:45 +0000 |
commit | 6e0bd0e0c8a4bfb145131a266d6bb4d1c3be2b52 (patch) | |
tree | 13b98676f93400074e1f903179f850542dc30999 /sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb | |
parent | 62346ef1b5ab79e61842f605db1d00224f4ab698 (diff) | |
download | sonarqube-6e0bd0e0c8a4bfb145131a266d6bb4d1c3be2b52.tar.gz sonarqube-6e0bd0e0c8a4bfb145131a266d6bb4d1c3be2b52.zip |
SONAR-1886: Uninstall a plugin
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb b/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb index b330dcebdde..a3014ae14ff 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/controllers/updatecenter_controller.rb @@ -66,7 +66,7 @@ class UpdatecenterController < ApplicationController end end - def cancel + def cancel_downloads java_facade.cancelPluginDownloads() flash[:notice]="Plugin downloads are canceled." redirect_to :action => 'index' @@ -97,6 +97,12 @@ class UpdatecenterController < ApplicationController redirect_to :action => 'index' end + def cancel_uninstalls + java_facade.cancelPluginUninstalls() + flash[:notice]="Plugin uninstalls are canceled." + redirect_to :action => 'index' + end + private def load_update_finder @finder=java_facade.getUpdateFinder(params[:reload]=='true') |