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 Message from "../../models/Message";
|
||||||
import Queue from "../../models/Queue";
|
import Queue from "../../models/Queue";
|
||||||
import ShowUserService from "../UserServices/ShowUserService";
|
import ShowUserService from "../UserServices/ShowUserService";
|
||||||
|
import Whatsapp from "../../models/Whatsapp";
|
||||||
|
|
||||||
interface Request {
|
interface Request {
|
||||||
searchParam?: string;
|
searchParam?: string;
|
||||||
@@ -50,6 +51,11 @@ const ListTicketsService = async ({
|
|||||||
model: Queue,
|
model: Queue,
|
||||||
as: "queue",
|
as: "queue",
|
||||||
attributes: ["id", "name", "color"]
|
attributes: ["id", "name", "color"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
model: Whatsapp,
|
||||||
|
as: "whatsapp",
|
||||||
|
attributes: ["name"]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,21 @@ const useStyles = makeStyles(theme => ({
|
|||||||
top: "0%",
|
top: "0%",
|
||||||
left: "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 }) => {
|
const TicketListItem = ({ ticket }) => {
|
||||||
@@ -196,6 +211,9 @@ const TicketListItem = ({ ticket }) => {
|
|||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
|
{ticket.whatsappId && (
|
||||||
|
<div className={classes.userTag} title={i18n.t("ticketsList.connectionTitle")}>{ticket.whatsapp.name}</div>
|
||||||
|
)}
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
secondary={
|
secondary={
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ const messages = {
|
|||||||
assignedHeader: "Working on",
|
assignedHeader: "Working on",
|
||||||
noTicketsTitle: "Nothing here!",
|
noTicketsTitle: "Nothing here!",
|
||||||
noTicketsMessage: "No tickets found with this status or search term.",
|
noTicketsMessage: "No tickets found with this status or search term.",
|
||||||
|
connectionTitle: "Connection that is currently being used.",
|
||||||
buttons: {
|
buttons: {
|
||||||
accept: "Accept",
|
accept: "Accept",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -265,6 +265,7 @@ const messages = {
|
|||||||
pendingHeader: "Cola",
|
pendingHeader: "Cola",
|
||||||
assignedHeader: "Trabajando en",
|
assignedHeader: "Trabajando en",
|
||||||
noTicketsTitle: "¡Nada acá!",
|
noTicketsTitle: "¡Nada acá!",
|
||||||
|
connectionTitle: "Conexión que se está utilizando actualmente.",
|
||||||
noTicketsMessage:
|
noTicketsMessage:
|
||||||
"No se encontraron tickets con este estado o término de búsqueda",
|
"No se encontraron tickets con este estado o término de búsqueda",
|
||||||
buttons: {
|
buttons: {
|
||||||
|
|||||||
@@ -266,6 +266,7 @@ const messages = {
|
|||||||
noTicketsTitle: "Nada aqui!",
|
noTicketsTitle: "Nada aqui!",
|
||||||
noTicketsMessage:
|
noTicketsMessage:
|
||||||
"Nenhum ticket encontrado com esse status ou termo pesquisado",
|
"Nenhum ticket encontrado com esse status ou termo pesquisado",
|
||||||
|
connectionTitle: "Conexão que está sendo utilizada atualmente.",
|
||||||
buttons: {
|
buttons: {
|
||||||
accept: "Aceitar",
|
accept: "Aceitar",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user