From 96916410b030fc1a667b860c07d3bad736369c9f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 14 Feb 2016 17:49:45 -0500 Subject: [PATCH] update recording creator --- .../recordingcreator/recordingcreator.js | 17 +++++++++++++++++ .../recordingcreator.template.html | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/components/recordingcreator/recordingcreator.js b/dashboard-ui/components/recordingcreator/recordingcreator.js index 29fa705372..1d5e813250 100644 --- a/dashboard-ui/components/recordingcreator/recordingcreator.js +++ b/dashboard-ui/components/recordingcreator/recordingcreator.js @@ -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(); diff --git a/dashboard-ui/components/recordingcreator/recordingcreator.template.html b/dashboard-ui/components/recordingcreator/recordingcreator.template.html index b88f0e5b67..f81b74b559 100644 --- a/dashboard-ui/components/recordingcreator/recordingcreator.template.html +++ b/dashboard-ui/components/recordingcreator/recordingcreator.template.html @@ -49,7 +49,7 @@
${OptionConvertRecordingsToStreamingFormat}
${OptionConvertRecordingsToStreamingFormatHelp}
-
${FeatureRequiresEmbyPremiere}
+
${FeatureRequiresEmbyPremiere}