Skip to content

Commit

Permalink
Shorter names
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPrigorshnev committed Aug 15, 2023
1 parent fb4aabe commit fd7b4f3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/assets/javascripts/discourse/app/lib/user-status-message.js
Expand Up @@ -32,10 +32,10 @@ export class UserStatusMessage {
html.innerHTML = this.#emojiHtml(status.emoji);

if (opts?.showDescription) {
const messageDescription = document.createElement("span");
messageDescription.classList.add("user-status-message-description");
messageDescription.innerText = status.description;
html.appendChild(messageDescription);
const description = document.createElement("span");
description.classList.add("user-status-message-description");
description.innerText = status.description;
html.appendChild(description);
}

return html;
Expand All @@ -46,10 +46,10 @@ export class UserStatusMessage {
html.classList.add("user-status-message-tooltip");
html.innerHTML = this.#emojiHtml(status.emoji);

const tooltipDescription = document.createElement("span");
tooltipDescription.classList.add("user-status-tooltip-description");
tooltipDescription.innerText = status.description;
html.appendChild(tooltipDescription);
const description = document.createElement("span");
description.classList.add("user-status-tooltip-description");
description.innerText = status.description;
html.appendChild(description);

if (status.ends_at) {
const untilElement = document.createElement("div");
Expand Down

0 comments on commit fd7b4f3

Please sign in to comment.