Merge pull request #2211 from burakcakirel/bulk-action-redirect

Redirect link for bulk actions
This commit is contained in:
Cüneyt Şentürk
2021-07-30 16:31:58 +03:00
committed by GitHub
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 => {