[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:
parent
ae076de88f
commit
6ccb389492
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue