From 3fc630da45b904cb9ad35af407ef96524fb63665 Mon Sep 17 00:00:00 2001 From: brianlball Date: Sat, 24 Aug 2024 18:05:07 -0500 Subject: [PATCH] are you sure? --- server/app/views/analyses/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/app/views/analyses/show.html.erb b/server/app/views/analyses/show.html.erb index e364f34cb..df1b2d298 100644 --- a/server/app/views/analyses/show.html.erb +++ b/server/app/views/analyses/show.html.erb @@ -35,8 +35,8 @@ Status <%= @analysis.status %> <% if @analysis.status == 'started' %> - | <%= link_to("Stop Analysis", stop_analysis_path(@analysis)) %> - | <%= link_to "Soft Stop", soft_stop_analysis_path(@analysis) %> + | <%= link_to("Stop Analysis", stop_analysis_path(@analysis), onclick: "return confirm('Are you sure you want to stop the analysis?')") %> + | <%= link_to("Soft Stop", soft_stop_analysis_path(@analysis), onclick: "return confirm('Are you sure you want to stop the analysis?')") %> <% end %>