mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
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
@ -51,7 +51,10 @@ export class EntityTitleComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
const v = this.utilityService.asVolume(this.entity);
|
const v = this.utilityService.asVolume(this.entity);
|
||||||
this.volumeTitle = v.name || '';
|
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();
|
this.cdRef.markForCheck();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user