Skip to content

Commit

Permalink
Correções
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Aug 11, 2022
1 parent a4fb345 commit fb20876
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
4 changes: 3 additions & 1 deletion frontend/src/components/TicketActionButtons/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ const TicketActionButtons = ({ ticket }) => {
>
{i18n.t("messagesList.header.buttons.resolve")}
</ButtonWithSpinner>
<IconButton onClick={handleOpenTicketOptionsMenu}>
<IconButton
color="primary"
onClick={handleOpenTicketOptionsMenu}>
<MoreVert />
</IconButton>
<TicketOptionsMenu
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/TicketsManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ const TicketsManager = () => {

const [searchParam, setSearchParam] = useState("");
const [tab, setTab] = useState("open");
const [tabOpen, setTabOpen] = useState("open");
const [tabOpen] = useState("open");
const [newTicketModalOpen, setNewTicketModalOpen] = useState(false);
const [showAllTickets, setShowAllTickets] = useState(false);
const { user } = useContext(AuthContext);

const [openCount, setOpenCount] = useState(0);
const [, setOpenCount] = useState(0);
const [pendingCount, setPendingCount] = useState(0);

const userQueueIds = user.queues.map((q) => q.id);
Expand All @@ -118,6 +118,7 @@ const TicketsManager = () => {
if (user.profile.toUpperCase() === "ADMIN") {
setShowAllTickets(true);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

const handleSearch = (e) => {
Expand Down
12 changes: 12 additions & 0 deletions frontend/src/pages/Settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,18 @@ const Settings = () => {
<option value="43200">
{i18n.t("settings.settings.timeCreateNewTicket.options.43200")}
</option>
<option value="86400">
{i18n.t("settings.settings.timeCreateNewTicket.options.86400")}
</option>
<option value="604800">
{i18n.t("settings.settings.timeCreateNewTicket.options.604800")}
</option>
<option value="1296000">
{i18n.t("settings.settings.timeCreateNewTicket.options.1296000")}
</option>
<option value="2592000">
{i18n.t("settings.settings.timeCreateNewTicket.options.2592000")}
</option>
</Select>
</Paper>
</Tooltip>
Expand Down

0 comments on commit fb20876

Please sign in to comment.