Update static/js/05-feed.js
This commit is contained in:
parent
1945329f40
commit
8529ae06e1
@ -178,12 +178,12 @@ Glow.buildFeedEntry = entry => {
|
|||||||
const context = document.createElement("button");
|
const context = document.createElement("button");
|
||||||
context.className = "feed-room-link";
|
context.className = "feed-room-link";
|
||||||
context.type = "button";
|
context.type = "button";
|
||||||
|
|
||||||
if (entry.team_name && entry.channel_name) {
|
if (entry.team_name && entry.channel_name) {
|
||||||
context.textContent = `${entry.team_name} · # ${entry.channel_name}`;
|
context.textContent = `${entry.team_name} · # ${entry.channel_name}`;
|
||||||
} else {
|
} else {
|
||||||
context.textContent =
|
context.textContent =
|
||||||
`${entry.room_visibility === "private" ? "(private) " : "# "}${entry.room_name || "channel"}`;
|
`${entry.room_visibility === "private" ? "(private) " : "# "}${entry.room_name || "channel"}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
context.addEventListener("click", () => {
|
context.addEventListener("click", () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user