mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-30 01:05:18 +02:00
Fixes redirection when creating a ticket without user system enabled
This commit is contained in:
parent
bc38411275
commit
8ea9c6ee9b
@ -146,7 +146,7 @@ class CreateTicketForm extends React.Component {
|
|||||||
message: 'success'
|
message: 'success'
|
||||||
}, () => {
|
}, () => {
|
||||||
if(this.props.onSuccess) {
|
if(this.props.onSuccess) {
|
||||||
this.props.onSuccess();
|
this.props.onSuccess(result, email);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ class DashboardCreateTicketPage extends React.Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
onCreateTicketSuccess() {
|
onCreateTicketSuccess(result, email) {
|
||||||
if((this.props.location.pathname !== '/create-ticket')) {
|
if((this.props.location.pathname !== '/create-ticket')) {
|
||||||
setTimeout(() => {history.push('/dashboard')}, 2000);
|
setTimeout(() => {history.push('/dashboard')}, 2000);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user