mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-09 07:28:14 -07:00
chore: Clean-up for status cards
This commit is contained in:
parent
c9ce5b9b90
commit
ed5598fc66
12 changed files with 69 additions and 81 deletions
|
|
@ -82,6 +82,9 @@ class SeasonModel extends ItemBaseModel with SeasonModelMappable {
|
|||
|
||||
String localizedName(BuildContext context) => name.replaceFirst("Season", context.localized.season(1));
|
||||
|
||||
@override
|
||||
String? unplayedLabel(BuildContext context) => userData.played ? null : userData.unPlayedItemCount?.toString();
|
||||
|
||||
@override
|
||||
SeriesModel get parentBaseModel => SeriesModel(
|
||||
originalTitle: '',
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ class SeriesModel extends ItemBaseModel with SeriesModelMappable {
|
|||
return availableEpisodes?.map((e) => e).toList() ?? [];
|
||||
}
|
||||
|
||||
@override
|
||||
String? unplayedLabel(BuildContext context) => userData.played ? null : userData.unPlayedItemCount?.toString();
|
||||
|
||||
@override
|
||||
bool get syncAble => true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue