Fixed redirect of archiving offers

This commit is contained in:
Peter Zimon 2021-10-22 16:19:58 +02:00
parent 1fa408c48d
commit f76174c4df
2 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,9 @@ export default class ArchiveOfferModalComponent extends Component {
try {
yield offer.save();
this.router.transitionTo('offers');
this.router.transitionTo('offers', {queryParams: {
type: 'archived'
}});
return offer;
} catch (error) {

View File

@ -18,7 +18,9 @@ export default class ArchiveOfferModalComponent extends Component {
try {
yield offer.save();
this.router.transitionTo('offers');
this.router.transitionTo('offers', {queryParams: {
type: 'active'
}});
return offer;
} catch (error) {