fixup! fixup! Adding missing series Deleted UI elements

This commit is contained in:
Kyle Butler 2025-02-24 12:25:37 -05:00
parent a4290df000
commit 69b1a6dd0d
3 changed files with 6 additions and 8 deletions

View file

@ -1,5 +1,7 @@
import ModelBase from 'App/ModelBase';
export type AuthorStatus = 'continuing' | 'ended' | 'deleted';
interface Author extends ModelBase {
added: string;
genres: string[];

View file

@ -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'),

View file

@ -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;
}