mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
dd55a5fe61
commit
6b91120cb9
84 changed files with 619 additions and 385 deletions
39
dashboard-ui/cordova/registrationservices.js
vendored
39
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -212,6 +212,43 @@
|
|||
}
|
||||
}
|
||||
|
||||
function validateSync(deferred) {
|
||||
|
||||
Dashboard.getPluginSecurityInfo().done(function (pluginSecurityInfo) {
|
||||
|
||||
if (!pluginSecurityInfo.IsMBSupporter) {
|
||||
deferred.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.getRegistrationInfo('Sync').done(function (registrationInfo) {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
if (!registrationInfo.IsRegistered) {
|
||||
deferred.resolve();
|
||||
return;
|
||||
}
|
||||
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('HeaderSyncRequiresSupporterMembershipAppVersion'),
|
||||
title: Globalize.translate('HeaderSync')
|
||||
});
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
|
||||
Dashboard.alert({
|
||||
message: Globalize.translate('ErrorValidatingSupporterInfo')
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
window.RegistrationServices = {
|
||||
|
||||
renderPluginInfo: function (page, pkg, pluginSecurityInfo) {
|
||||
|
@ -237,6 +274,8 @@
|
|||
validateLiveTV(deferred);
|
||||
} else if (name == 'manageserver') {
|
||||
validateServerManagement(deferred);
|
||||
} else if (name == 'sync') {
|
||||
validateSync(deferred);
|
||||
} else {
|
||||
deferred.resolve();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue