Add: New icon for deleted episodes with status missing from disk
Signed-off-by: Stevie Robinson <stevie.robinson@gmail.com>
This commit is contained in:
parent
db6a627983
commit
79907c881c
|
@ -6,7 +6,7 @@ import { icons, kinds } from 'Helpers/Props';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
import styles from './HistoryEventTypeCell.css';
|
import styles from './HistoryEventTypeCell.css';
|
||||||
|
|
||||||
function getIconName(eventType) {
|
function getIconName(eventType, data) {
|
||||||
switch (eventType) {
|
switch (eventType) {
|
||||||
case 'grabbed':
|
case 'grabbed':
|
||||||
return icons.DOWNLOADING;
|
return icons.DOWNLOADING;
|
||||||
|
@ -17,7 +17,7 @@ function getIconName(eventType) {
|
||||||
case 'downloadFailed':
|
case 'downloadFailed':
|
||||||
return icons.DOWNLOADING;
|
return icons.DOWNLOADING;
|
||||||
case 'episodeFileDeleted':
|
case 'episodeFileDeleted':
|
||||||
return icons.DELETE;
|
return data.reason === 'MissingFromDisk' ? icons.FILE_MISSING : icons.DELETE;
|
||||||
case 'episodeFileRenamed':
|
case 'episodeFileRenamed':
|
||||||
return icons.ORGANIZE;
|
return icons.ORGANIZE;
|
||||||
case 'downloadIgnored':
|
case 'downloadIgnored':
|
||||||
|
@ -47,7 +47,7 @@ function getTooltip(eventType, data) {
|
||||||
case 'downloadFailed':
|
case 'downloadFailed':
|
||||||
return translate('DownloadFailedEpisodeTooltip');
|
return translate('DownloadFailedEpisodeTooltip');
|
||||||
case 'episodeFileDeleted':
|
case 'episodeFileDeleted':
|
||||||
return translate('EpisodeFileDeletedTooltip');
|
return data.reason === 'MissingFromDisk' ? translate('EpisodeFileMissingTooltip') : translate('EpisodeFileDeletedTooltip');
|
||||||
case 'episodeFileRenamed':
|
case 'episodeFileRenamed':
|
||||||
return translate('EpisodeFileRenamedTooltip');
|
return translate('EpisodeFileRenamedTooltip');
|
||||||
case 'downloadIgnored':
|
case 'downloadIgnored':
|
||||||
|
@ -58,7 +58,7 @@ function getTooltip(eventType, data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function HistoryEventTypeCell({ eventType, data }) {
|
function HistoryEventTypeCell({ eventType, data }) {
|
||||||
const iconName = getIconName(eventType);
|
const iconName = getIconName(eventType, data);
|
||||||
const iconKind = getIconKind(eventType);
|
const iconKind = getIconKind(eventType);
|
||||||
const tooltip = getTooltip(eventType, data);
|
const tooltip = getTooltip(eventType, data);
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ import {
|
||||||
faEye as fasEye,
|
faEye as fasEye,
|
||||||
faFastBackward as fasFastBackward,
|
faFastBackward as fasFastBackward,
|
||||||
faFastForward as fasFastForward,
|
faFastForward as fasFastForward,
|
||||||
|
faFileCircleQuestion as fasFileCircleQuestion,
|
||||||
faFileExport as fasFileExport,
|
faFileExport as fasFileExport,
|
||||||
faFileInvoice as farFileInvoice,
|
faFileInvoice as farFileInvoice,
|
||||||
faFilter as fasFilter,
|
faFilter as fasFilter,
|
||||||
|
@ -146,6 +147,7 @@ export const EXPORT = fasFileExport;
|
||||||
export const EXTERNAL_LINK = fasExternalLinkAlt;
|
export const EXTERNAL_LINK = fasExternalLinkAlt;
|
||||||
export const FATAL = fasTimesCircle;
|
export const FATAL = fasTimesCircle;
|
||||||
export const FILE = farFile;
|
export const FILE = farFile;
|
||||||
|
export const FILE_MISSING = fasFileCircleQuestion;
|
||||||
export const FILTER = fasFilter;
|
export const FILTER = fasFilter;
|
||||||
export const FOOTNOTE = fasAsterisk;
|
export const FOOTNOTE = fasAsterisk;
|
||||||
export const FOLDER = farFolder;
|
export const FOLDER = farFolder;
|
||||||
|
|
|
@ -418,10 +418,10 @@
|
||||||
"DownloadClientPneumaticSettingsNzbFolderHelpText": "This folder will need to be reachable from XBMC",
|
"DownloadClientPneumaticSettingsNzbFolderHelpText": "This folder will need to be reachable from XBMC",
|
||||||
"DownloadClientPneumaticSettingsStrmFolder": "Strm Folder",
|
"DownloadClientPneumaticSettingsStrmFolder": "Strm Folder",
|
||||||
"DownloadClientPneumaticSettingsStrmFolderHelpText": ".strm files in this folder will be import by drone",
|
"DownloadClientPneumaticSettingsStrmFolderHelpText": ".strm files in this folder will be import by drone",
|
||||||
"DownloadClientQbittorrentSettingsFirstAndLastFirst": "First and Last First",
|
|
||||||
"DownloadClientQbittorrentSettingsFirstAndLastFirstHelpText": "Download first and last pieces first (qBittorrent 4.1.0+)",
|
|
||||||
"DownloadClientQbittorrentSettingsContentLayout": "Content Layout",
|
"DownloadClientQbittorrentSettingsContentLayout": "Content Layout",
|
||||||
"DownloadClientQbittorrentSettingsContentLayoutHelpText": "Whether to use qBittorrent's configured content layout, the original layout from the torrent or always create a subfolder (qBittorrent 4.3.2+)",
|
"DownloadClientQbittorrentSettingsContentLayoutHelpText": "Whether to use qBittorrent's configured content layout, the original layout from the torrent or always create a subfolder (qBittorrent 4.3.2+)",
|
||||||
|
"DownloadClientQbittorrentSettingsFirstAndLastFirst": "First and Last First",
|
||||||
|
"DownloadClientQbittorrentSettingsFirstAndLastFirstHelpText": "Download first and last pieces first (qBittorrent 4.1.0+)",
|
||||||
"DownloadClientQbittorrentSettingsInitialStateHelpText": "Initial state for torrents added to qBittorrent. Note that Forced Torrents do not abide by seed restrictions",
|
"DownloadClientQbittorrentSettingsInitialStateHelpText": "Initial state for torrents added to qBittorrent. Note that Forced Torrents do not abide by seed restrictions",
|
||||||
"DownloadClientQbittorrentSettingsSequentialOrder": "Sequential Order",
|
"DownloadClientQbittorrentSettingsSequentialOrder": "Sequential Order",
|
||||||
"DownloadClientQbittorrentSettingsSequentialOrderHelpText": "Download in sequential order (qBittorrent 4.1.0+)",
|
"DownloadClientQbittorrentSettingsSequentialOrderHelpText": "Download in sequential order (qBittorrent 4.1.0+)",
|
||||||
|
@ -574,6 +574,7 @@
|
||||||
"EpisodeDownloaded": "Episode Downloaded",
|
"EpisodeDownloaded": "Episode Downloaded",
|
||||||
"EpisodeFileDeleted": "Episode File Deleted",
|
"EpisodeFileDeleted": "Episode File Deleted",
|
||||||
"EpisodeFileDeletedTooltip": "Episode file deleted",
|
"EpisodeFileDeletedTooltip": "Episode file deleted",
|
||||||
|
"EpisodeFileMissingTooltip": "Episode file missing",
|
||||||
"EpisodeFileRenamed": "Episode File Renamed",
|
"EpisodeFileRenamed": "Episode File Renamed",
|
||||||
"EpisodeFileRenamedTooltip": "Episode file renamed",
|
"EpisodeFileRenamedTooltip": "Episode file renamed",
|
||||||
"EpisodeFilesLoadError": "Unable to load episode files",
|
"EpisodeFilesLoadError": "Unable to load episode files",
|
||||||
|
|
Loading…
Reference in New Issue