Skip to content

Commit

Permalink
Merge pull request #28 from seantaylor/fix/better-cancel-in-admin
Browse files Browse the repository at this point in the history
Small UI change to canceling in the admin
  • Loading branch information
qr8r authored Aug 11, 2017
2 parents 8e92e86 + d5e486a commit 8d81b64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@
<% if subscription.state_events.include?(:cancel) %>
<%=
link_to_with_icon(
:pause,
:stop,
t('.cancel'),
spree.cancel_admin_subscription_path(subscription),
no_text: true,
method: :delete
method: :delete,
data: { confirm: t('.cancel_alert') }
)
%>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ en:
subscriptions:
subscription:
cancel: Cancel
cancel_alert: "Are you sure you want to cancel this subscription?"
activate: Activate
skip: Skip One

Expand Down

0 comments on commit 8d81b64

Please sign in to comment.