New: Queue status icon is purple when download is waiting to import or importing

Fixed: Time Left on Queue won't show when completed
Queue status/timeleft improvements

Closes #281

(cherry picked from commit 910de6d94a4482e82e295153e01c299460af2d2d)
This commit is contained in:
Mark McDowall
2020-05-24 13:30:33 -07:00
committed by Qstick
parent 1be94da583
commit d34e588588
3 changed files with 14 additions and 7 deletions

View File

@@ -20,7 +20,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 });
@@ -34,7 +34,7 @@ function TimeleftCell(props) {
);
}
if (status === 'DownloadClientUnavailable') {
if (status === 'downloadClientUnavailable') {
const date = getRelativeDate(estimatedCompletionTime, shortDateFormat, showRelativeDates);
const time = formatTime(estimatedCompletionTime, timeFormat, { includeMinuteZero: true });
@@ -48,7 +48,7 @@ function TimeleftCell(props) {
);
}
if (!timeleft) {
if (!timeleft || status === 'completed' || status === 'failed') {
return (
<TableRowCell className={styles.timeleft}>
-