Add more detail to search results
Adds getSummary to the MediaTypeModel.ts abstract class, which allows individual models to give more detail to better allow people to pick the right result
This commit is contained in:
parent
e4788750f7
commit
39017bfa82
7 changed files with 23 additions and 1 deletions
|
|
@ -42,4 +42,8 @@ export class GameModel extends MediaTypeModel {
|
|||
return MediaType.Game;
|
||||
}
|
||||
|
||||
getSummary(): string {
|
||||
return this.englishTitle + ' (' + this.year + ')';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue