Enhanced volume title in list view (#1390)

* Adding vol number to volume title in list view

* removing unnecessary code
This commit is contained in:
Robbie Davis 2022-07-26 11:09:13 -04:00 committed by GitHub
parent 748ba23117
commit ca9fb38112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}