update recording creator

This commit is contained in:
Luke Pulverenti 2016-02-14 17:49:45 -05:00
parent a1e8db221f
commit 96916410b0
2 changed files with 18 additions and 1 deletions

View File

@ -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();

View File

@ -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">