Skip to content

Commit

Permalink
Add explanatory text for Delete button, #2981
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Nov 5, 2021
1 parent 0f3cda1 commit 93226b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/locales/en.yml
Expand Up @@ -27,7 +27,7 @@ en: # <---- change this to your locale code
Delete: Delete
AddToQueue: Add to queue
AreYouSureDeleteJob: Are you sure you want to delete this job?
AreYouSureDeleteQueue: Are you sure you want to delete the %{queue} queue?
AreYouSureDeleteQueue: Are you sure you want to delete the %{queue} queue? This will delete all jobs within the queue, it will reappear if you push more jobs to it in the future.
Queues: Queues
Size: Size
Actions: Actions
Expand Down
2 changes: 1 addition & 1 deletion web/views/queues.erb
Expand Up @@ -21,7 +21,7 @@
<td class="delete-confirm">
<form action="<%=root_path %>queues/<%= CGI.escape(queue.name) %>" method="post">
<%= csrf_tag %>
<input class="btn btn-danger" type="submit" name="delete" value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSureDeleteQueue', :queue => h(queue.name)) %>" />
<input class="btn btn-danger" type="submit" name="delete" title="This will delete all jobs within the queue, it will reappear if you push more jobs to it in the future." value="<%= t('Delete') %>" data-confirm="<%= t('AreYouSureDeleteQueue', :queue => h(queue.name)) %>" />

<% if Sidekiq.pro? %>
<% if queue.paused? %>
Expand Down

0 comments on commit 93226b7

Please sign in to comment.