mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
indicator changes class and cleanup
This commit is contained in:
parent
eb29d0b6a7
commit
cef8fba4de
1 changed files with 12 additions and 18 deletions
|
@ -98,7 +98,7 @@
|
||||||
var status;
|
var status;
|
||||||
|
|
||||||
if (item.Type === 'SeriesTimer') {
|
if (item.Type === 'SeriesTimer') {
|
||||||
return '<i class="material-icons timerIndicator indicatorIcon fiber_smart_record"></i>';
|
return '<span class="material-icons timerIndicator indicatorIcon fiber_smart_record"></span>';
|
||||||
} else if (item.TimerId || item.SeriesTimerId) {
|
} else if (item.TimerId || item.SeriesTimerId) {
|
||||||
status = item.Status || 'Cancelled';
|
status = item.Status || 'Cancelled';
|
||||||
} else if (item.Type === 'Timer') {
|
} else if (item.Type === 'Timer') {
|
||||||
|
@ -109,40 +109,34 @@
|
||||||
|
|
||||||
if (item.SeriesTimerId) {
|
if (item.SeriesTimerId) {
|
||||||
if (status !== 'Cancelled') {
|
if (status !== 'Cancelled') {
|
||||||
return '<i class="material-icons timerIndicator indicatorIcon fiber_smart_record"></i>';
|
return '<span class="material-icons timerIndicator indicatorIcon fiber_smart_record"></span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<i class="material-icons timerIndicator timerIndicator-inactive indicatorIcon fiber_smart_record"></i>';
|
return '<span class="material-icons timerIndicator timerIndicator-inactive indicatorIcon fiber_smart_record"></span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<i class="material-icons timerIndicator indicatorIcon fiber_manual_record"></i>';
|
return '<span class="material-icons timerIndicator indicatorIcon fiber_manual_record"></span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getSyncIndicator(item) {
|
export function getSyncIndicator(item) {
|
||||||
if (item.SyncPercent === 100) {
|
if (item.SyncPercent === 100) {
|
||||||
return '<div class="syncIndicator indicator fullSyncIndicator"><i class="material-icons indicatorIcon file_download"></i></div>';
|
return '<div class="syncIndicator indicator fullSyncIndicator"><span class="material-icons indicatorIcon file_download"></span></div>';
|
||||||
} else if (item.SyncPercent != null) {
|
} else if (item.SyncPercent != null) {
|
||||||
return '<div class="syncIndicator indicator emptySyncIndicator"><i class="material-icons indicatorIcon file_download"></i></div>';
|
return '<div class="syncIndicator indicator emptySyncIndicator"><span class="material-icons indicatorIcon file_download"></span></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getTypeIndicator(item) {
|
export function getTypeIndicator(item) {
|
||||||
if (item.Type === 'Video') {
|
const iconT = {
|
||||||
return '<div class="indicator videoIndicator"><i class="material-icons indicatorIcon">videocam</i></div>';
|
'Video' : 'videocam',
|
||||||
}
|
'Folder' : 'folder',
|
||||||
if (item.Type === 'Folder') {
|
'PhotoAlbum' : 'photo_album',
|
||||||
return '<div class="indicator videoIndicator"><i class="material-icons indicatorIcon">folder</i></div>';
|
'Photo' : 'photo'
|
||||||
}
|
|
||||||
if (item.Type === 'PhotoAlbum') {
|
|
||||||
return '<div class="indicator videoIndicator"><i class="material-icons indicatorIcon photo_album"></i></div>';
|
|
||||||
}
|
|
||||||
if (item.Type === 'Photo') {
|
|
||||||
return '<div class="indicator videoIndicator"><i class="material-icons indicatorIcon">photo</i></div>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return iconT[item.iconType] ? '<div class="indicator videoIndicator"><span class="material-icons indicatorIcon '+ iconT[item.iconType] +'"></span></div>' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getMissingIndicator(item) {
|
export function getMissingIndicator(item) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue