Kavita/UI/Web/src/app/pipe/relationship.pipe.ts
Joseph Milazzo a062341564
Release Shakeout (#1266)
* Fixed an issue with fit to screen where spread images would fail to generate a paging area long enough.

* Fixed pagination placement on original scaling

* Fixed an issue with webtoon reader not reporting scroll events due to a fix from manga reader.

* Fixing select on black book-reader theme

* Fixing canvas split centering

* Fixed a bug with white mode in book reader not rendering correctly. When bookmarking new pages after previously have viewing bookmarks for a series, ensure we clear out the temp cache else your new files wont be visible till next day.

* Use grid on related tab

* Clear bookmarks was not hooked up. Bulk add to collection didn't have label hidden

* Fixed bug where filter might stay open between pages

* Fixed typo on relationship for Adaptation

* Contains was missing from series relation modal

* Tweaked some methods and wording on reading list page

* Cleaned up the phrasing when we abort a scan.

* Fixed issue where typeahead wasn't reopening and it wasn't filtering selected options

* Fixed some typeahead bugs and decreased interval for docker health check

* Cleaned up and fixed some logic with receiving cover image update events

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
2022-05-20 17:50:17 -05:00

41 lines
1.1 KiB
TypeScript

import { Pipe, PipeTransform } from '@angular/core';
import { RelationKind } from '../_models/series-detail/relation-kind';
@Pipe({
name: 'relationship'
})
export class RelationshipPipe implements PipeTransform {
transform(relationship: RelationKind | undefined): string {
if (relationship === undefined) return '';
switch (relationship) {
case RelationKind.Adaptation:
return 'Adaptation';
case RelationKind.AlternativeSetting:
return 'Alternative Setting';
case RelationKind.AlternativeVersion:
return 'Alternative Version';
case RelationKind.Character:
return 'Character';
case RelationKind.Contains:
return 'Contains';
case RelationKind.Doujinshi:
return 'Doujinshi';
case RelationKind.Other:
return 'Other';
case RelationKind.Prequel:
return 'Prequel';
case RelationKind.Sequel:
return 'Sequel';
case RelationKind.SideStory:
return 'Side Story';
case RelationKind.SpinOff:
return 'Spin Off';
case RelationKind.Parent:
return 'Parent';
default:
return '';
}
}
}