Fixed up updating issue data
This commit is contained in:
parent
31819d7723
commit
3f1212a84f
12 changed files with 3705 additions and 27 deletions
|
|
@ -234,4 +234,25 @@ public class Chapter : IEntityDate, IHasReadTimeEstimate, IHasCoverImage
|
|||
PrimaryColor = string.Empty;
|
||||
SecondaryColor = string.Empty;
|
||||
}
|
||||
|
||||
public bool IsPersonRoleLocked(PersonRole role)
|
||||
{
|
||||
return role switch
|
||||
{
|
||||
PersonRole.Character => CharacterLocked,
|
||||
PersonRole.Writer => WriterLocked,
|
||||
PersonRole.Penciller => PencillerLocked,
|
||||
PersonRole.Inker => InkerLocked,
|
||||
PersonRole.Colorist => ColoristLocked,
|
||||
PersonRole.Letterer => LettererLocked,
|
||||
PersonRole.CoverArtist => CoverArtistLocked,
|
||||
PersonRole.Editor => EditorLocked,
|
||||
PersonRole.Publisher => PublisherLocked,
|
||||
PersonRole.Translator => TranslatorLocked,
|
||||
PersonRole.Imprint => ImprintLocked,
|
||||
PersonRole.Team => TeamLocked,
|
||||
PersonRole.Location => LocationLocked,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(role), role, null)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue