Merge pull request from guillegiu/reditect-after-deleting

Reditect after deleting
This commit is contained in:
Ivan Diaz 2020-01-07 17:32:24 -03:00 committed by GitHub
commit 4141b31992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
client/src/app-components

View File

@ -8,6 +8,7 @@ import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import SessionStore from 'lib-app/session-store';
import MentionsParser from 'lib-app/mentions-parser';
import history from 'lib-app/history';
import TicketEvent from 'app-components/ticket-event';
import AreYouSure from 'app-components/are-you-sure';
@ -415,7 +416,10 @@ class TicketViewer extends React.Component {
data: {
ticketNumber: this.props.ticket.ticketNumber
}
}).then(this.onTicketModification.bind(this));
}).then((result) => {
this.onTicketModification(result);
history.push('/admin/panel/tickets/my-tickets/');
});
}
changeDepartment(index) {