Explorar o código

Render hat titles

JC Brand %!s(int64=5) %!d(string=hai) anos
pai
achega
0f73b27fcd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/message.js

+ 1 - 1
src/components/message.js

@@ -215,7 +215,7 @@ class Message extends CustomElement {
 
     renderAvatarByline () {
         return html`
-            ${ this.hats.map(role => html`<span class="badge badge-secondary">${role}</span>`) }
+            ${ this.hats.map(h => html`<span class="badge badge-secondary">${h.title}</span>`) }
             <time timestamp="${this.time}" class="chat-msg__time">${this.pretty_time}</time>
         `;
     }