aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-03 08:02:17 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-03 21:58:55 +0100
commit39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9 (patch)
tree971b22205a715e357fa881ef3720e1780b69c27f /app/controllers
parent9e622112a80f493eab53420d7dafedb9dd10a612 (diff)
downloadgovuk-mini-environment-admin-39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9.tar
govuk-mini-environment-admin-39d3f763d3644ac8f6f7274edb11fd1dff1c1ba9.tar.gz
Remove some redundant views
And replace with a redirect and flash message.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/que_jobs_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/que_jobs_controller.rb b/app/controllers/que_jobs_controller.rb
index bab2c47..34ac201 100644
--- a/app/controllers/que_jobs_controller.rb
+++ b/app/controllers/que_jobs_controller.rb
@@ -3,6 +3,10 @@ class QueJobsController < ApplicationController
ActiveRecord::Base.connection.execute(
"DELETE FROM que_jobs WHERE job_id = #{job_id}::bigint"
)
+
+ flash[:success] = 'Job canceled'
+
+ redirect_to mini_environments_path
end
def retry_now
@@ -11,6 +15,10 @@ class QueJobsController < ApplicationController
SET run_at = now()
WHERE job_id = #{job_id}::bigint"
)
+
+ flash[:success] = 'Retrying the job now'
+
+ redirect_to mini_environments_path
end
def job_id