mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-25 09:22:22 +00:00
Fix redirection after event deletion
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e856566361
commit
4fc8816a1f
2 changed files with 4 additions and 1 deletions
|
@ -142,7 +142,6 @@ export default class EventMixin extends mixins(Vue) {
|
|||
position: "is-bottom-right",
|
||||
duration: 5000,
|
||||
});
|
||||
await this.$router.push({ name: RouteName.HOME });
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
|
|
@ -755,6 +755,10 @@ export default class Event extends EventMixin {
|
|||
}
|
||||
});
|
||||
});
|
||||
|
||||
this.$on('eventDeleted', () => {
|
||||
return this.$router.push({ name: RouteName.HOME });
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue