[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
This commit is contained in:
Joel Elias Méndez 2021-10-08 16:09:09 -03:00 committed by GitHub
parent ae076de88f
commit 6ccb389492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -843,13 +843,13 @@ class TicketViewer extends React.Component {
showDeleteButton() { showDeleteButton() {
const { ticket, userLevel, userId, userStaff } = this.props; const { ticket, userLevel, userId, userStaff } = this.props;
const { owner, author } = ticket || {}; const { owner, author, closed } = ticket || {};
const { staff, id } = author || {}; const { staff, id } = author || {};
if(!owner) { if(!owner) {
if(userLevel === 3) return true; if(userLevel === 3) return true;
if(userId == id*1) { if(userId == id*1) {
return ((userStaff && staff)); return (userStaff && staff && closed);
} }
} }