mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update recording dialogs
This commit is contained in:
parent
fbc040dc9c
commit
90d30a0229
73 changed files with 1986 additions and 713 deletions
63
dashboard-ui/components/iap.js
Normal file
63
dashboard-ui/components/iap.js
Normal file
|
@ -0,0 +1,63 @@
|
|||
define(['apphost', 'globalize', 'shell'], function (appHost, globalize, shell) {
|
||||
|
||||
function getProductInfo(feature) {
|
||||
return null;
|
||||
}
|
||||
|
||||
function showExternalPremiereInfo() {
|
||||
shell.openUrl('https://emby.media/premiere');
|
||||
}
|
||||
|
||||
function beginPurchase(feature, email) {
|
||||
showExternalPremiereInfo();
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
function restorePurchase(id) {
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
function getSubscriptionOptions() {
|
||||
|
||||
var options = [];
|
||||
|
||||
options.push({
|
||||
id: 'embypremiere',
|
||||
title: globalize.translate('sharedcomponents#HeaderBecomeProjectSupporter'),
|
||||
requiresEmail: false
|
||||
});
|
||||
|
||||
return Promise.resolve(options);
|
||||
}
|
||||
|
||||
function isUnlockedByDefault(feature, options) {
|
||||
|
||||
var autoUnlockedFeatures = appHost.unlockedFeatures ? appHost.unlockedFeatures() : [];
|
||||
if (autoUnlockedFeatures.indexOf(feature) != -1) {
|
||||
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return Promise.reject();
|
||||
}
|
||||
|
||||
function getAdminFeatureName(feature) {
|
||||
|
||||
return feature;
|
||||
}
|
||||
|
||||
function getRestoreButtonText() {
|
||||
return globalize.translate('sharedcomponents#ButtonAlreadyPaid');
|
||||
}
|
||||
|
||||
return {
|
||||
getProductInfo: getProductInfo,
|
||||
beginPurchase: beginPurchase,
|
||||
restorePurchase: restorePurchase,
|
||||
getSubscriptionOptions: getSubscriptionOptions,
|
||||
isUnlockedByDefault: isUnlockedByDefault,
|
||||
getAdminFeatureName: getAdminFeatureName,
|
||||
getRestoreButtonText: getRestoreButtonText
|
||||
};
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue