mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update file system methods
This commit is contained in:
parent
504384e83d
commit
1ae53be25d
1 changed files with 7 additions and 5 deletions
12
dashboard-ui/cordova/registrationservices.js
vendored
12
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -68,7 +68,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var productInfo = {
|
var productInfo = {
|
||||||
enableSupporterUnlock: isAndroid(),
|
enableSupporterUnlock: true,
|
||||||
enableAppUnlock: IapManager.isPurchaseAvailable(id),
|
enableAppUnlock: IapManager.isPurchaseAvailable(id),
|
||||||
id: id,
|
id: id,
|
||||||
price: info.price
|
price: info.price
|
||||||
|
@ -135,10 +135,12 @@
|
||||||
|
|
||||||
html += '<p style="margin:2em 0;">';
|
html += '<p style="margin:2em 0;">';
|
||||||
|
|
||||||
if (info.enableSupporterUnlock && info.enableAppUnlock) {
|
var showSupporterInfo = info.enableSupporterUnlock && !$.browser.safari;
|
||||||
|
|
||||||
|
if (showSupporterInfo && info.enableAppUnlock) {
|
||||||
html += Globalize.translate('MessageUnlockAppWithPurchaseOrSupporter');
|
html += Globalize.translate('MessageUnlockAppWithPurchaseOrSupporter');
|
||||||
}
|
}
|
||||||
else if (info.enableSupporterUnlock) {
|
else if (showSupporterInfo) {
|
||||||
html += Globalize.translate('MessageUnlockAppWithSupporter');
|
html += Globalize.translate('MessageUnlockAppWithSupporter');
|
||||||
} else if (info.enableAppUnlock) {
|
} else if (info.enableAppUnlock) {
|
||||||
html += Globalize.translate('MessageUnlockAppWithPurchase');
|
html += Globalize.translate('MessageUnlockAppWithPurchase');
|
||||||
|
@ -149,7 +151,7 @@
|
||||||
}
|
}
|
||||||
html += '</p>';
|
html += '</p>';
|
||||||
|
|
||||||
if (info.enableSupporterUnlock) {
|
if (showSupporterInfo) {
|
||||||
html += '<p style="margin:2em 0;">';
|
html += '<p style="margin:2em 0;">';
|
||||||
html += Globalize.translate('MessageToValidateSupporter');
|
html += Globalize.translate('MessageToValidateSupporter');
|
||||||
html += '</p>';
|
html += '</p>';
|
||||||
|
@ -172,7 +174,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.enableSupporterUnlock) {
|
if (showSupporterInfo) {
|
||||||
html += '<p>';
|
html += '<p>';
|
||||||
html += '<paper-button raised class="submit block btnSignInSupporter"><iron-icon icon="check"></iron-icon><span>' + Globalize.translate('ButtonUnlockWithSupporter') + '</span></paper-button>';
|
html += '<paper-button raised class="submit block btnSignInSupporter"><iron-icon icon="check"></iron-icon><span>' + Globalize.translate('ButtonUnlockWithSupporter') + '</span></paper-button>';
|
||||||
html += '</p>';
|
html += '</p>';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue