From cef8fba4dec2c529a4a3cc2df6703504d161606e Mon Sep 17 00:00:00 2001 From: Sarab Singh Date: Mon, 4 May 2020 16:35:36 +0530 Subject: [PATCH] indicator changes class and cleanup --- src/components/indicators/indicators.js | 30 ++++++++++--------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/src/components/indicators/indicators.js b/src/components/indicators/indicators.js index b22a9dafdc..eccb72d687 100644 --- a/src/components/indicators/indicators.js +++ b/src/components/indicators/indicators.js @@ -98,7 +98,7 @@ var status; if (item.Type === 'SeriesTimer') { - return ''; + return ''; } else if (item.TimerId || item.SeriesTimerId) { status = item.Status || 'Cancelled'; } else if (item.Type === 'Timer') { @@ -109,40 +109,34 @@ if (item.SeriesTimerId) { if (status !== 'Cancelled') { - return ''; + return ''; } - return ''; + return ''; } - return ''; + return ''; } export function getSyncIndicator(item) { if (item.SyncPercent === 100) { - return '
'; + return '
'; } else if (item.SyncPercent != null) { - return '
'; + return '
'; } return ''; } export function getTypeIndicator(item) { - if (item.Type === 'Video') { - return '
videocam
'; - } - if (item.Type === 'Folder') { - return '
folder
'; - } - if (item.Type === 'PhotoAlbum') { - return '
'; - } - if (item.Type === 'Photo') { - return '
photo
'; + const iconT = { + 'Video' : 'videocam', + 'Folder' : 'folder', + 'PhotoAlbum' : 'photo_album', + 'Photo' : 'photo' } - return ''; + return iconT[item.iconType] ? '
' : ''; } export function getMissingIndicator(item) {