mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
update recording creator
This commit is contained in:
parent
a1e8db221f
commit
96916410b0
@ -280,6 +280,7 @@
|
||||
|
||||
if (program.ServiceName == 'Emby') {
|
||||
context.querySelector('.convertRecordingsContainer').classList.remove('hide');
|
||||
showConvertRecordingsUnlockMessage();
|
||||
} else {
|
||||
context.querySelector('.convertRecordingsContainer').classList.add('hide');
|
||||
}
|
||||
@ -287,6 +288,22 @@
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
function showConvertRecordingsUnlockMessage(context) {
|
||||
|
||||
Dashboard.getPluginSecurityInfo().then(function(regInfo) {
|
||||
|
||||
if (regInfo.IsRegistered) {
|
||||
context.querySelector('.btnSupporterForConverting').classList.add('hide');
|
||||
} else {
|
||||
context.querySelector('.btnSupporterForConverting').classList.remove('hide');
|
||||
}
|
||||
|
||||
}, function() {
|
||||
|
||||
context.querySelector('.btnSupporterForConverting').classList.remove('hide');
|
||||
});
|
||||
}
|
||||
|
||||
function reload(context, programId) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
@ -49,7 +49,7 @@
|
||||
<br />
|
||||
<paper-checkbox id="chkConvertRecordings">${OptionConvertRecordingsToStreamingFormat}</paper-checkbox>
|
||||
<div class="fieldDescription paperCheckboxFieldDescription">${OptionConvertRecordingsToStreamingFormatHelp}</div>
|
||||
<div class="fieldDescription paperCheckboxFieldDescription btnSupporterForConverting"><a href="https://emby.media/premiere" target="_blank" class="accent">${FeatureRequiresEmbyPremiere}</a></div>
|
||||
<div class="fieldDescription paperCheckboxFieldDescription btnSupporterForConverting hide"><a href="https://emby.media/premiere" target="_blank" class="accent">${FeatureRequiresEmbyPremiere}</a></div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="advancedToggle hide">
|
||||
|
Loading…
Reference in New Issue
Block a user