1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-24 00:43:02 +00:00

Merge branch 'bug/fix-event-deletion-redirect' into 'master'

Fix event deletion redirection

Closes #170

See merge request framasoft/mobilizon!190
This commit is contained in:
Thomas Citharel 2019-09-23 11:46:43 +02:00
commit d01b631f2c
2 changed files with 1 additions and 2 deletions

View file

@ -35,7 +35,6 @@ export default class EventMixin extends mixins(Vue) {
}
private async deleteEvent(event: IEvent, currentActor: IPerson) {
const router = this.$router;
const eventTitle = event.title;
try {
@ -54,6 +53,7 @@ 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);
}

View file

@ -260,7 +260,6 @@ export default class Event extends EventMixin {
*/
async openDeleteEventModalWrapper() {
await this.openDeleteEventModal(this.event, this.currentActor);
await this.$router.push({ name: RouteName.HOME });
}
async reportEvent(content: string, forward: boolean) {