Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Removed isSpecial from volume (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 authored Apr 16, 2021
1 parent 2fb4b53 commit 05e478d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/_models/volume.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export interface Volume {
pages: number;
pagesRead: number;
chapters?: Array<Chapter>;
isSpecial: boolean; // For side stories, etc.
}
2 changes: 1 addition & 1 deletion src/app/series-detail/series-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class SeriesDetailComponent implements OnInit {
this.createHTML();

this.seriesService.getVolumes(this.series.id).subscribe(volumes => {
this.chapters = volumes.filter(v => !v.isSpecial && v.number === 0).map(v => v.chapters || []).flat().sort(this.utilityService.sortChapters);
this.chapters = volumes.filter(v => v.number === 0).map(v => v.chapters || []).flat().sort(this.utilityService.sortChapters); // volumes.filter(!v.isSpecial && )
this.volumes = volumes.sort(this.utilityService.sortVolumes);

this.setContinuePoint();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h4 *ngIf="isObjectVolume(data)">Information</h4>
Id: {{data.id}}
</div>
<div class="col">
Special: {{(data.isSpecial ? 'Yes' : 'No') || 'N/A'}}
<!-- Special: {{(data?.isSpecial ? 'Yes' : 'No') || 'N/A'}} -->
</div>
</div>
<div class="row no-gutters">
Expand Down

0 comments on commit 05e478d

Please sign in to comment.