mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update queries
This commit is contained in:
parent
8d07bdcc53
commit
f8c98e4641
1 changed files with 5 additions and 1 deletions
6
dashboard-ui/cordova/registrationservices.js
vendored
6
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -114,8 +114,11 @@
|
||||||
html += Globalize.translate('MessageToValidateSupporter');
|
html += Globalize.translate('MessageToValidateSupporter');
|
||||||
html += '</p>';
|
html += '</p>';
|
||||||
|
|
||||||
|
var hasProduct = false;
|
||||||
|
|
||||||
if (unlockableProductInfo) {
|
if (unlockableProductInfo) {
|
||||||
|
|
||||||
|
hasProduct = true;
|
||||||
var unlockText = Globalize.translate('ButtonUnlockWithPurchase');
|
var unlockText = Globalize.translate('ButtonUnlockWithPurchase');
|
||||||
if (unlockableProductInfo.price) {
|
if (unlockableProductInfo.price) {
|
||||||
unlockText = Globalize.translate('ButtonUnlockPrice', unlockableProductInfo.price);
|
unlockText = Globalize.translate('ButtonUnlockPrice', unlockableProductInfo.price);
|
||||||
|
@ -127,6 +130,7 @@
|
||||||
|
|
||||||
for (var i = 0, length = subscriptionOptions.length; i < length; i++) {
|
for (var i = 0, length = subscriptionOptions.length; i < length; i++) {
|
||||||
|
|
||||||
|
hasProduct = true;
|
||||||
html += '<p>';
|
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 += '<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;
|
html += subscriptionOptions[i].buttonText;
|
||||||
|
@ -134,7 +138,7 @@
|
||||||
html += '</p>';
|
html += '</p>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IapManager.restorePurchase) {
|
if (hasProduct && IapManager.restorePurchase) {
|
||||||
html += '<p>';
|
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 += '<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>';
|
html += '</p>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue