Redirect link for bulk actions

This commit is contained in:
Burak Çakırel
2021-07-30 14:09:27 +01:00
parent b748d44072
commit cd446eca58
2 changed files with 12 additions and 1 deletions

View File

@ -152,8 +152,10 @@ export default class BulkAction {
}));
type_promise.then(response => {
if (response.data.redirect) {
if (response.data.redirect === true) {
window.location.reload(false);
} else if (typeof response.data.redirect === 'string') {
window.location.href = response.data.redirect;
}
})
.catch(error => {