Enhanced volume title in list view (#1390)
* Adding vol number to volume title in list view * removing unnecessary code
This commit is contained in:
parent
748ba23117
commit
ca9fb38112
1 changed files with 4 additions and 1 deletions
|
@ -51,7 +51,10 @@ export class EntityTitleComponent implements OnInit {
|
|||
} else {
|
||||
const v = this.utilityService.asVolume(this.entity);
|
||||
this.volumeTitle = v.name || '';
|
||||
this.titleName = v.chapters[0].titleName || '';
|
||||
this.titleName = v.name || '';
|
||||
if (v.chapters[0].titleName) {
|
||||
this.titleName += ' - ' + v.chapters[0].titleName;
|
||||
}
|
||||
}
|
||||
this.cdRef.markForCheck();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue