diff --git a/availabili.tf/src/components/InviteEntry.vue b/availabili.tf/src/components/InviteEntry.vue index 186db1b..03927fb 100644 --- a/availabili.tf/src/components/InviteEntry.vue +++ b/availabili.tf/src/components/InviteEntry.vue @@ -1,10 +1,10 @@ diff --git a/availabili.tf/src/components/PlayerTeamCard.vue b/availabili.tf/src/components/PlayerTeamCard.vue index e7603f9..98796c2 100644 --- a/availabili.tf/src/components/PlayerTeamCard.vue +++ b/availabili.tf/src/components/PlayerTeamCard.vue @@ -1,9 +1,8 @@ diff --git a/availabili.tf/src/views/TeamSettings/InvitesView.vue b/availabili.tf/src/views/TeamSettings/InvitesView.vue index 21c0f4e..b4212e5 100644 --- a/availabili.tf/src/views/TeamSettings/InvitesView.vue +++ b/availabili.tf/src/views/TeamSettings/InvitesView.vue @@ -3,8 +3,10 @@ import { useTeamDetails } from "@/composables/team-details"; import { useTeamsStore } from "@/stores/teams"; import { onMounted } from "vue"; import InviteEntry from "@/components/InviteEntry.vue"; +import { useInvitesStore } from "@/stores/teams/invites"; const teamsStore = useTeamsStore(); +const invitesStore = useInvitesStore(); const { team, @@ -13,12 +15,12 @@ const { } = useTeamDetails(); function createInvite() { - teamsStore.createInvite(team.value.id); + invitesStore.createInvite(team.value.id); } onMounted(() => { teamsStore.fetchTeam(teamId.value) - .then(() => teamsStore.getInvites(teamId.value)); + .then(() => invitesStore.getInvites(teamId.value)); });