update queries
This commit is contained in:
+5
-1
@@ -114,8 +114,11 @@
|
||||
html += Globalize.translate('MessageToValidateSupporter');
|
||||
html += '</p>';
|
||||
|
||||
var hasProduct = false;
|
||||
|
||||
if (unlockableProductInfo) {
|
||||
|
||||
hasProduct = true;
|
||||
var unlockText = Globalize.translate('ButtonUnlockWithPurchase');
|
||||
if (unlockableProductInfo.price) {
|
||||
unlockText = Globalize.translate('ButtonUnlockPrice', unlockableProductInfo.price);
|
||||
@@ -127,6 +130,7 @@
|
||||
|
||||
for (var i = 0, length = subscriptionOptions.length; i < length; i++) {
|
||||
|
||||
hasProduct = true;
|
||||
html += '<p>';
|
||||
html += '<paper-button raised class="submit block btnPurchase" data-email="true" data-feature="' + subscriptionOptions[i].feature + '"><iron-icon icon="check"></iron-icon><span>';
|
||||
html += subscriptionOptions[i].buttonText;
|
||||
@@ -134,7 +138,7 @@
|
||||
html += '</p>';
|
||||
}
|
||||
|
||||
if (IapManager.restorePurchase) {
|
||||
if (hasProduct && IapManager.restorePurchase) {
|
||||
html += '<p>';
|
||||
html += '<paper-button raised class="secondary block btnRestorePurchase" style="background-color: #673AB7;"><iron-icon icon="check"></iron-icon><span>' + Globalize.translate('ButtonRestorePreviousPurchase') + '</span></paper-button>';
|
||||
html += '</p>';
|
||||
|
||||
Reference in New Issue
Block a user