Fix redirection after event deletion

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-06-23 17:20:21 +02:00
parent e856566361
commit 4fc8816a1f
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
2 changed files with 4 additions and 1 deletions

View file

@ -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);
}

View file

@ -755,6 +755,10 @@ export default class Event extends EventMixin {
}
});
});
this.$on('eventDeleted', () => {
return this.$router.push({ name: RouteName.HOME });
})
}
/**