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 967c829e9b
commit 19ff59147a
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 });
})
}
/**