Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 5f3aec0

Browse files
committed
Merge pull request #1493 from OpenBazaar/warningIfBuyOwnProduct
Disable Purchase on Own Item
2 parents 635d368 + c2f218b commit 5f3aec0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

js/languages/en-US.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@
644644
},
645645
"buyFlow": {
646646
"PayForOrder": "Pay for Order",
647+
"BuyOwnProductMsg": "You can't buy your own listing",
647648
"NeedTempAddress": "I need a temporary Bitcoin address",
648649
"NeedTempAddressHelper": "Please bookmark the url to your temporary bitcoin address",
649650
"CantFindAddress": "I can't find my bitcoin address",

js/templates/buyWizard.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,10 +529,16 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
529529
<span class="ion-chevron-left fontSize10 marginRight2 textOpacity75"></span>
530530
<%= polyglot.t('Back') %>
531531
</a>
532+
<% if(ob.ownPage){ %>
533+
<div class="btn btn-bar btn-half custCol-secondary custCol-border-primary borderBottomRightRaidus3 disabled">
534+
<%= polyglot.t('buyFlow.BuyOwnProductMsg') %>
535+
</div>
536+
<% } else { %>
532537
<a class="btn btn-bar btn-half js-buyWizardSendPurchase custCol-secondary custCol-border-primary borderBottomRightRaidus3">
533538
<%= polyglot.t('buyFlow.PayForOrder') %>
534539
<span class="ion-chevron-right fontSize10 marginLeft2 textOpacity75"></span>
535540
</a>
541+
<% } %>
536542
<span class="btn btn-bar btn-half disabled js-buyWizardPendingMsg hide custCol-secondary custCol-border-primary borderBottomRightRaidus3"><%= polyglot.t('PaymentPending') %></span>
537543
<a class="btn btn-bar btn-wide js-buyWizardCloseSummary custCol-secondary borderBottomLeftRaidus3 borderBottomRightRaidus3 hide"><%= polyglot.t('Close') %></a>
538544
</div>

0 commit comments

Comments
 (0)