|
|
@ -13,7 +13,10 @@ function getDetailedPopoverBody(statusMessages) {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
statusMessages.map(({ title, messages }) => {
|
|
|
|
statusMessages.map(({ title, messages }) => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div key={title}>
|
|
|
|
<div
|
|
|
|
|
|
|
|
key={title}
|
|
|
|
|
|
|
|
className={messages.length ? undefined: styles.noMessages}
|
|
|
|
|
|
|
|
>
|
|
|
|
{title}
|
|
|
|
{title}
|
|
|
|
<ul>
|
|
|
|
<ul>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -52,10 +55,6 @@ function QueueStatusCell(props) {
|
|
|
|
let iconKind = kinds.DEFAULT;
|
|
|
|
let iconKind = kinds.DEFAULT;
|
|
|
|
let title = translate('Downloading');
|
|
|
|
let title = translate('Downloading');
|
|
|
|
|
|
|
|
|
|
|
|
if (hasWarning) {
|
|
|
|
|
|
|
|
iconKind = kinds.WARNING;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (status === 'paused') {
|
|
|
|
if (status === 'paused') {
|
|
|
|
iconName = icons.PAUSED;
|
|
|
|
iconName = icons.PAUSED;
|
|
|
|
title = 'Paused';
|
|
|
|
title = 'Paused';
|
|
|
@ -72,17 +71,24 @@ function QueueStatusCell(props) {
|
|
|
|
|
|
|
|
|
|
|
|
if (trackedDownloadState === 'importPending') {
|
|
|
|
if (trackedDownloadState === 'importPending') {
|
|
|
|
title += ' - Waiting to Import';
|
|
|
|
title += ' - Waiting to Import';
|
|
|
|
|
|
|
|
iconKind = kinds.PURPLE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (trackedDownloadState === 'importing') {
|
|
|
|
if (trackedDownloadState === 'importing') {
|
|
|
|
title += ' - Importing';
|
|
|
|
title += ' - Importing';
|
|
|
|
|
|
|
|
iconKind = kinds.PURPLE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (trackedDownloadState === 'failedPending') {
|
|
|
|
if (trackedDownloadState === 'failedPending') {
|
|
|
|
title += ' - Waiting to Process';
|
|
|
|
title += ' - Waiting to Process';
|
|
|
|
|
|
|
|
iconKind = kinds.DANGER;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hasWarning) {
|
|
|
|
|
|
|
|
iconKind = kinds.WARNING;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (status === 'delay') {
|
|
|
|
if (status === 'delay') {
|
|
|
|
iconName = icons.PENDING;
|
|
|
|
iconName = icons.PENDING;
|
|
|
|
title = 'Pending';
|
|
|
|
title = 'Pending';
|
|
|
@ -146,8 +152,8 @@ QueueStatusCell.propTypes = {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
QueueStatusCell.defaultProps = {
|
|
|
|
QueueStatusCell.defaultProps = {
|
|
|
|
trackedDownloadStatus: 'ok',
|
|
|
|
trackedDownloadStatus: 'Ok',
|
|
|
|
trackedDownloadState: 'downloading'
|
|
|
|
trackedDownloadState: 'Downloading'
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export default QueueStatusCell;
|
|
|
|
export default QueueStatusCell;
|
|
|
|