Skip to content

Commit

Permalink
Change auto-capture selects from true/false to yes/no to make verbiag…
Browse files Browse the repository at this point in the history
…e more consistent in backend
  • Loading branch information
Michael Caviness committed Jul 14, 2020
1 parent 7073fd9 commit 175e69c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/app/views/spree/admin/payment_methods/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
</div>
<div data-hook="auto_capture" class="field">
<%= f.label :auto_capture %>
<%= f.select :auto_capture, [["#{t('spree.use_app_default')} (#{Spree::Config[:auto_capture]})", ''], [t('spree.say_yes'), true], [t('spree.say_no'), false]], {}, {class: 'custom-select fullwidth'} %>
<%= f.select :auto_capture,
[["#{t('spree.use_app_default')} (#{Spree::Config[:auto_capture] ? t('spree.say_yes') : t('spree.say_no')})", ''],
[t('spree.say_yes'), true],
[t('spree.say_no'), false]],
{},
{class: 'custom-select fullwidth'} %>
</div>
<div data-hook="available_to_user" class="field">
<label>
Expand Down

0 comments on commit 175e69c

Please sign in to comment.