Skip to content

Commit

Permalink
Removed legacy ECN functionality for queue tags
Browse files Browse the repository at this point in the history
  • Loading branch information
remender authored Nov 17, 2025
1 parent e9d5c91 commit c79a6b2
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions content/modules/parsing.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,39 +370,6 @@ function parseTicket(mutation = null) {
return
}

// Add queue tag to ticket title with color coding
// Only add if queue block exists, header exists, and queue box doesn't already exist
if (queueBlock && header && !document.querySelector(".qBox")) {
let queueElement = queueBlock.querySelector("span.wrap-text")
if (!queueElement) {
return
}

let queueText = (queueElement.innerText || queueElement.textContent || "").trim()

if (!queueText) {
return
}

// Create queue tag element
let queueTagBox = document.createElement("span")
queueTagBox.textContent = queueText
queueTagBox.classList.add("qBox")

// Apply color coding based on queue name
let queueTextLower = queueText.toLowerCase()
for (const queueKey of Object.keys(colorsByQueue)) {
let queueColorConfig = colorsByQueue[queueKey]
if (queueTextLower === queueKey) {
queueTagBox.style.color = queueColorConfig.txt
queueTagBox.style.backgroundColor = queueColorConfig.bg
break
}
}

header.appendChild(queueTagBox)
}

// Handle button links - configure to open in new tabs
// Update ticket buttons
[...document.querySelectorAll("#btnUpdateTicket, #divUpdateFromActions")].forEach(button => {
Expand Down

0 comments on commit c79a6b2

Please sign in to comment.