mirror of
https://github.com/Readarr/Readarr
synced 2026-01-25 08:54:41 +01:00
fixup! fixup! Adding missing series Deleted UI elements
This commit is contained in:
parent
a4290df000
commit
69b1a6dd0d
3 changed files with 6 additions and 8 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import ModelBase from 'App/ModelBase';
|
||||
|
||||
export type AuthorStatus = 'continuing' | 'ended' | 'deleted';
|
||||
|
||||
interface Author extends ModelBase {
|
||||
added: string;
|
||||
genres: string[];
|
||||
|
|
|
|||
|
|
@ -1,14 +1,8 @@
|
|||
import { IconDefinition } from '@fortawesome/free-regular-svg-icons';
|
||||
import { AuthorStatus } from 'Author/Author';
|
||||
import { icons } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
|
||||
interface AuthorStatus {
|
||||
icon: IconDefinition;
|
||||
title: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export function getAuthorStatusDetails(status): AuthorStatus {
|
||||
export function getAuthorStatusDetails(status: AuthorStatus) {
|
||||
let statusDetails = {
|
||||
icon: icons.AUTHOR_CONTINUING,
|
||||
title: translate('StatusEndedContinuing'),
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ function getNewAuthor(author, payload) {
|
|||
qualityProfileId,
|
||||
metadataProfileId,
|
||||
tags,
|
||||
status,
|
||||
searchForMissingBooks = false
|
||||
} = payload;
|
||||
|
||||
|
|
@ -22,6 +23,7 @@ function getNewAuthor(author, payload) {
|
|||
author.metadataProfileId = metadataProfileId;
|
||||
author.rootFolderPath = rootFolderPath;
|
||||
author.tags = tags;
|
||||
author.status = status;
|
||||
|
||||
return author;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue