mirror of
https://codeberg.org/vlw/freshdesk-filters.git
synced 2025-11-04 23:22:42 +01:00
Compare commits
2 commits
660d67effb
...
d6168340a3
| Author | SHA1 | Date | |
|---|---|---|---|
| d6168340a3 | |||
| c8e1f5c928 |
2 changed files with 7 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue