mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce sync db access
This commit is contained in:
parent
ff0882ba79
commit
6ec48ff340
4 changed files with 46 additions and 45 deletions
|
@ -89,7 +89,7 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
|||
}
|
||||
|
||||
function getTimerIndicator(item) {
|
||||
|
||||
|
||||
if (item.SeriesTimerId) {
|
||||
return '<i class="md-icon timerIndicator indicator">fiber_smart_record</i>';
|
||||
}
|
||||
|
@ -100,12 +100,24 @@ define(['css!./indicators.css', 'material-icons'], function () {
|
|||
return '';
|
||||
}
|
||||
|
||||
function getSyncIndicator(item) {
|
||||
|
||||
if (item.SyncPercent == 100) {
|
||||
return '<i class="md-icon indicator syncIndicator fullSyncIndicator">file_download</i>';
|
||||
} else if (item.SyncPercent != null) {
|
||||
return '<i class="md-icon indicator syncIndicator emptySyncIndicator">file_download</i>';
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
return {
|
||||
getProgressBarHtml: getProgressBarHtml,
|
||||
getPlayedIndicatorHtml: getPlayedIndicator,
|
||||
getChildCountIndicatorHtml: getChildCountIndicatorHtml,
|
||||
enableProgressIndicator: enableProgressIndicator,
|
||||
getTimerIndicator: getTimerIndicator,
|
||||
enablePlayedIndicator: enablePlayedIndicator
|
||||
enablePlayedIndicator: enablePlayedIndicator,
|
||||
getSyncIndicator: getSyncIndicator
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue