Compare commits

..

2 commits

Author SHA1 Message Date
vlw
d6168340a3 doc: update README 2025-10-14 10:38:56 +02:00
c8e1f5c928
fix: flipped comparison for agent name test 2025-10-14 10:35:17 +02:00
2 changed files with 7 additions and 4 deletions

View file

@ -13,14 +13,17 @@ This extension provides the following functionality:
### Open ticket by clicking the whole table column
Tickets can be opened by clicking anywhere inside the subject column, not just on the link itself.
### (Optional) Agent name(s)
Current agent name or names can be defined explicitly or with a regular expression.
### (Optional) Open ticket in a new tab
Open tickets in a new tab instead of navigating to the ticket directly.
### (Optional) Dim tickets not assigned to current agent
Tickets not assigned to the current agent will be dimmed.
### (Optional) Dim tickets not assigned to current agent(s)
Tickets not assigned to the current agent(s) will be dimmed.
### (Optional) Move tickets assigned to current agent to the top
> [!WARNING]
> This feature is kind of broken at the moment.
Tickets assigned to the current agent will be placed at the top of the tickets table.
Tickets assigned to the current agent(s) will be placed at the top of the tickets table.

View file

@ -136,7 +136,7 @@ class FreshdeskFilters {
// Check if this ticket is assigned to this agent
const isCurrentAgent = await CONFIG.get(CONFIG.AGENT_NAME_REGEX) !== "true"
// An agent name is explicitly defined
? ticketAgentName !== agentName
? ticketAgentName === agentName
// Agent name(s) are defined with RegEx
: new RegExp(agentName).test(ticketAgentName);