Fix redirection after event deletion
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
e856566361
commit
4fc8816a1f
@ -142,7 +142,6 @@ 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);
|
||||||
}
|
}
|
||||||
|
@ -755,6 +755,10 @@ export default class Event extends EventMixin {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.$on('eventDeleted', () => {
|
||||||
|
return this.$router.push({ name: RouteName.HOME });
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user