|
|
|
@ -19,7 +19,7 @@ function TimeleftCell(props) {
|
|
|
|
|
timeFormat
|
|
|
|
|
} = props;
|
|
|
|
|
|
|
|
|
|
if (status === 'Delay') {
|
|
|
|
|
if (status === 'delay') {
|
|
|
|
|
const date = getRelativeDate(estimatedCompletionTime, shortDateFormat, showRelativeDates);
|
|
|
|
|
const time = formatTime(estimatedCompletionTime, timeFormat, { includeMinuteZero: true });
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ function TimeleftCell(props) {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (status === 'DownloadClientUnavailable') {
|
|
|
|
|
if (status === 'downloadClientUnavailable') {
|
|
|
|
|
const date = getRelativeDate(estimatedCompletionTime, shortDateFormat, showRelativeDates);
|
|
|
|
|
const time = formatTime(estimatedCompletionTime, timeFormat, { includeMinuteZero: true });
|
|
|
|
|
|
|
|
|
@ -47,7 +47,7 @@ function TimeleftCell(props) {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!timeleft) {
|
|
|
|
|
if (!timeleft || status === 'completed' || status === 'failed') {
|
|
|
|
|
return (
|
|
|
|
|
<TableRowCell className={styles.timeleft}>
|
|
|
|
|
-
|
|
|
|
|