mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-17 19:37:02 +00:00
✨ Show the connection currently being used
This commit is contained in:
@@ -6,6 +6,7 @@ import Contact from "../../models/Contact";
|
||||
import Message from "../../models/Message";
|
||||
import Queue from "../../models/Queue";
|
||||
import ShowUserService from "../UserServices/ShowUserService";
|
||||
import Whatsapp from "../../models/Whatsapp";
|
||||
|
||||
interface Request {
|
||||
searchParam?: string;
|
||||
@@ -50,6 +51,11 @@ const ListTicketsService = async ({
|
||||
model: Queue,
|
||||
as: "queue",
|
||||
attributes: ["id", "name", "color"]
|
||||
},
|
||||
{
|
||||
model: Whatsapp,
|
||||
as: "whatsapp",
|
||||
attributes: ["name"]
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@@ -99,6 +99,21 @@ const useStyles = makeStyles(theme => ({
|
||||
top: "0%",
|
||||
left: "0%",
|
||||
},
|
||||
|
||||
userTag: {
|
||||
position: "absolute",
|
||||
marginRight: 5,
|
||||
right: 5,
|
||||
bottom: 5,
|
||||
background:"#2576D2",
|
||||
color: "#ffffff",
|
||||
border:"1px solid #CCC",
|
||||
padding: 1,
|
||||
paddingLeft: 5,
|
||||
paddingRight: 5,
|
||||
borderRadius: 10,
|
||||
fontSize: "1em"
|
||||
},
|
||||
}));
|
||||
|
||||
const TicketListItem = ({ ticket }) => {
|
||||
@@ -196,6 +211,9 @@ const TicketListItem = ({ ticket }) => {
|
||||
)}
|
||||
</Typography>
|
||||
)}
|
||||
{ticket.whatsappId && (
|
||||
<div className={classes.userTag} title={i18n.t("ticketsList.connectionTitle")}>{ticket.whatsapp.name}</div>
|
||||
)}
|
||||
</span>
|
||||
}
|
||||
secondary={
|
||||
|
||||
@@ -263,6 +263,7 @@ const messages = {
|
||||
assignedHeader: "Working on",
|
||||
noTicketsTitle: "Nothing here!",
|
||||
noTicketsMessage: "No tickets found with this status or search term.",
|
||||
connectionTitle: "Connection that is currently being used.",
|
||||
buttons: {
|
||||
accept: "Accept",
|
||||
},
|
||||
|
||||
@@ -265,6 +265,7 @@ const messages = {
|
||||
pendingHeader: "Cola",
|
||||
assignedHeader: "Trabajando en",
|
||||
noTicketsTitle: "¡Nada acá!",
|
||||
connectionTitle: "Conexión que se está utilizando actualmente.",
|
||||
noTicketsMessage:
|
||||
"No se encontraron tickets con este estado o término de búsqueda",
|
||||
buttons: {
|
||||
|
||||
@@ -266,6 +266,7 @@ const messages = {
|
||||
noTicketsTitle: "Nada aqui!",
|
||||
noTicketsMessage:
|
||||
"Nenhum ticket encontrado com esse status ou termo pesquisado",
|
||||
connectionTitle: "Conexão que está sendo utilizada atualmente.",
|
||||
buttons: {
|
||||
accept: "Aceitar",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user