Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Add scam warning to purchase modal #1164

Merged
merged 6 commits into from
Jan 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions js/languages/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,7 @@
"memoPlaceholder": "Provide additional details for the vendor here (optional).",
"pay": "PAY >",
"payNote": "Clicking pay will advance you to the final step.",
"scamWarning": "WARNING: Protect against scams",
"pending": "Pending…",
"pendingNote": "Please fund the order to complete your transaction.",
"close": "close",
Expand Down
3 changes: 2 additions & 1 deletion js/templates/modals/purchase/actionBtn.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ <h3>
</div>
<% } %>
</div>
<div class="padSm txSm txCtr clrT2">
<div class="padSm flexColRows gutterVSm txSm txCtr clrT2">
<% if (ob.phase === 'pay' || ob.phase === 'confirm') { %>
<span class="js-payNote"><%= ob.polyT('purchase.payNote') %></span>
<% } else if (ob.phase ==='pending') { %>
<span class="js-pendingNote"><%= ob.polyT('purchase.pendingNote') %></span>
<% } else if (ob.phase ==='complete') { %>
<span class="js-closeNote"><%= ob.polyT('purchase.closeNote') %></span>
<% } %>
<a class="clrTErr txU" href="https://scamprevention.openbazaar.org"><%= ob.polyT('purchase.scamWarning') %></a>
</div>