diff --git a/src/elements/common/navbar.ts b/src/elements/common/navbar.ts index 14a3a49a..420429f8 100644 --- a/src/elements/common/navbar.ts +++ b/src/elements/common/navbar.ts @@ -250,6 +250,19 @@ export default class NavBar extends LitElement { /> `; + } + + renderCrumbImage(crumb: CrumbDisplay): TemplateResult { + if (typeof crumb.img === 'undefined') return html``; + + switch (crumb.img.type) { + case 'Group': + return this.renderGroupAvatar(crumb.img.infoObj); + case 'Game': + return this.renderGameAvatar(crumb.img.infoObj); + default: + return html``; + } } renderBreadCrumb(): TemplateResult { @@ -270,22 +283,11 @@ export default class NavBar extends LitElement {