From 6ccb389492ea8739bf0dafd625190932aaa13d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20Elias=20M=C3=A9ndez?= <67445275+joelmendez1@users.noreply.github.com> Date: Fri, 8 Oct 2021 16:09:09 -0300 Subject: [PATCH] [DEV-129] Redirect after ticket is created without user system (#1045) * Redirect to home/dashboard after ticket is created without user system * fix min-height in main-home-page-portal component * Move success messagge * querystring check * fix delete ticket button visibility --- client/src/app-components/ticket-viewer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/app-components/ticket-viewer.js b/client/src/app-components/ticket-viewer.js index 8eefff5a..cf1ebacd 100644 --- a/client/src/app-components/ticket-viewer.js +++ b/client/src/app-components/ticket-viewer.js @@ -843,13 +843,13 @@ class TicketViewer extends React.Component { showDeleteButton() { const { ticket, userLevel, userId, userStaff } = this.props; - const { owner, author } = ticket || {}; + const { owner, author, closed } = ticket || {}; const { staff, id } = author || {}; - + if(!owner) { if(userLevel === 3) return true; if(userId == id*1) { - return ((userStaff && staff)); + return (userStaff && staff && closed); } }