Compare commits

..

No commits in common. "d6168340a32c7912f46e734666efeda7eec26b96" and "660d67effbf35d8a35aa392c94a853959d383ee3" have entirely different histories.

2 changed files with 4 additions and 7 deletions

View file

@ -13,17 +13,14 @@ 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(s)
Tickets not assigned to the current agent(s) will be dimmed.
### (Optional) Dim tickets not assigned to current agent
Tickets not assigned to the current agent 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(s) will be placed at the top of the tickets table.
Tickets assigned to the current agent 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);