forked from potsda.mn/mobilizon
Fix event deletion redirection
Closes #170 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0af855fdb8
commit
b70a204e06
|
@ -35,7 +35,6 @@ export default class EventMixin extends mixins(Vue) {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async deleteEvent(event: IEvent, currentActor: IPerson) {
|
private async deleteEvent(event: IEvent, currentActor: IPerson) {
|
||||||
const router = this.$router;
|
|
||||||
const eventTitle = event.title;
|
const eventTitle = event.title;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -54,6 +53,7 @@ export default class EventMixin extends mixins(Vue) {
|
||||||
position: 'is-bottom-right',
|
position: 'is-bottom-right',
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
|
await this.$router.push({ name: RouteName.HOME });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,7 +260,6 @@ export default class Event extends EventMixin {
|
||||||
*/
|
*/
|
||||||
async openDeleteEventModalWrapper() {
|
async openDeleteEventModalWrapper() {
|
||||||
await this.openDeleteEventModal(this.event, this.currentActor);
|
await this.openDeleteEventModal(this.event, this.currentActor);
|
||||||
await this.$router.push({ name: RouteName.HOME });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async reportEvent(content: string, forward: boolean) {
|
async reportEvent(content: string, forward: boolean) {
|
||||||
|
|
Loading…
Reference in a new issue