mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add more properties to LiveTvInfo
This commit is contained in:
parent
fab298ecea
commit
4bbec7c71f
@ -2,7 +2,7 @@
|
||||
|
||||
function loadPage(page, config, liveTvInfo) {
|
||||
|
||||
if (liveTvInfo.Services.length) {
|
||||
if (liveTvInfo.IsEnabled) {
|
||||
|
||||
$('.liveTvSettingsForm', page).show();
|
||||
$('.noLiveTvServices', page).hide();
|
||||
@ -20,19 +20,14 @@
|
||||
|
||||
$('#selectActiveService', page).html(serviceOptions).selectmenu('refresh');
|
||||
|
||||
var service = liveTvInfo.Services.filter(function (s) {
|
||||
return s.Name == liveTvInfo.ActiveServiceName;
|
||||
})[0];
|
||||
|
||||
$('#activeServiceName', page).html(liveTvInfo.ActiveServiceName);
|
||||
|
||||
|
||||
var status = service.Status;
|
||||
var status = liveTvInfo.Status;
|
||||
|
||||
if (status != 'Ok') {
|
||||
|
||||
if (service.StatusMessage) {
|
||||
status += ' (' + service.StatusMessage + ')';
|
||||
if (liveTvInfo.StatusMessage) {
|
||||
status += ' (' + liveTvInfo.StatusMessage + ')';
|
||||
}
|
||||
status = '<span style="color:red;">' + status + '</span>';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user