1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update queries

This commit is contained in:
Luke Pulverenti 2015-11-16 11:38:12 -05:00
parent 8d07bdcc53
commit f8c98e4641

View file

@ -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>';