mirror of
https://github.com/Readarr/Readarr
synced 2026-01-26 01:11:52 +01:00
fixup! Adding missing series Deleted UI elements
This commit is contained in:
parent
3a389476e5
commit
a4290df000
1 changed files with 10 additions and 4 deletions
|
|
@ -1,25 +1,31 @@
|
|||
import { IconDefinition } from '@fortawesome/free-regular-svg-icons';
|
||||
import { icons } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
|
||||
export function getAuthorStatusDetails(status) {
|
||||
interface AuthorStatus {
|
||||
icon: IconDefinition;
|
||||
title: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export function getAuthorStatusDetails(status): AuthorStatus {
|
||||
let statusDetails = {
|
||||
icon: icons.AUTHOR_CONTINUING,
|
||||
title: translate('StatusEndedContinuing'),
|
||||
message: translate('ContinuingMoreBooksAreExpected')
|
||||
message: translate('ContinuingMoreBooksAreExpected'),
|
||||
};
|
||||
|
||||
if (status === 'deleted') {
|
||||
statusDetails = {
|
||||
icon: icons.AUTHOR_DELETED,
|
||||
title: translate('StatusEndedDeceased'),
|
||||
message: translate('NotContinuingAuthorDeceased')
|
||||
message: translate('NotContinuingAuthorDeceased'),
|
||||
};
|
||||
} else if (status === 'ended') {
|
||||
statusDetails = {
|
||||
icon: icons.AUTHOR_ENDED,
|
||||
title: translate('StatusEndedEnded'),
|
||||
message: translate('ContinuingNoAdditionalBooksAreExpected')
|
||||
message: translate('ContinuingNoAdditionalBooksAreExpected'),
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue