1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add ability to disable tuner

This commit is contained in:
Luke Pulverenti 2015-07-27 12:25:45 -04:00
parent aa2e4f3f67
commit b1f6f8486a
2 changed files with 8 additions and 1 deletions

View file

@ -24,6 +24,11 @@
<div> <div>
<paper-input class="txtDevicePath" label="${LabelTunerIpAddress}" required="required"></paper-input> <paper-input class="txtDevicePath" label="${LabelTunerIpAddress}" required="required"></paper-input>
</div> </div>
<div>
<br />
<paper-checkbox class="chkEnabled">${LabelEnableThisTuner}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableThisTunerHelp}</div>
</div>
<div> <div>
<br /> <br />
<paper-checkbox class="chkFavorite">${LabelImportOnlyFavoriteChannels}</paper-checkbox> <paper-checkbox class="chkFavorite">${LabelImportOnlyFavoriteChannels}</paper-checkbox>

View file

@ -14,6 +14,7 @@
page.querySelector('.txtDevicePath').value = info.Url || ''; page.querySelector('.txtDevicePath').value = info.Url || '';
page.querySelector('.chkFavorite').checked = info.ImportFavoritesOnly; page.querySelector('.chkFavorite').checked = info.ImportFavoritesOnly;
page.querySelector('.chkEnabled').checked = info.IsEnabled;
}); });
} }
@ -26,7 +27,8 @@
var info = { var info = {
Type: 'hdhomerun', Type: 'hdhomerun',
Url: page.querySelector('.txtDevicePath').value, Url: page.querySelector('.txtDevicePath').value,
ImportFavoritesOnly: page.querySelector('.chkFavorite').checked ImportFavoritesOnly: page.querySelector('.chkFavorite').checked,
IsEnabled: page.querySelector('.chkEnabled').checked
}; };
var id = getParameterByName('id'); var id = getParameterByName('id');