osb/spark/resources/assets/js/settings/teams/mailed-invitations.js
2017-11-03 16:26:07 +11:00

17 lines
361 B
JavaScript
Vendored

module.exports = {
props: ['team', 'invitations'],
methods: {
/**
* Cancel the sent invitation.
*/
cancel(invitation) {
axios.delete(`/settings/invitations/${invitation.id}`)
.then(() => {
this.$parent.$emit('updateInvitations');
});
}
}
};