2024-11-23 14:25:41 +01:00
|
|
|
<template>
|
2025-05-16 13:32:40 +02:00
|
|
|
<MainTemplate title="offene Einladungen">
|
2024-11-23 14:25:41 +01:00
|
|
|
<template #headerInsert>
|
2025-02-15 11:41:27 +01:00
|
|
|
<RouterLink :to="{ name: 'admin-management-user' }" class="text-primary">zurück zur Nutzerliste</RouterLink>
|
2024-11-23 14:25:41 +01:00
|
|
|
</template>
|
2025-05-16 13:32:40 +02:00
|
|
|
<template #main>
|
|
|
|
<InviteListItem v-for="invite in invites" :key="invite.username" :invite="invite" />
|
2024-11-23 14:25:41 +01:00
|
|
|
</template>
|
|
|
|
</MainTemplate>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import { defineComponent, markRaw, defineAsyncComponent } from "vue";
|
|
|
|
import { mapState, mapActions } from "pinia";
|
|
|
|
import MainTemplate from "@/templates/Main.vue";
|
2025-02-15 11:08:09 +01:00
|
|
|
import { useInviteStore } from "@/stores/admin/management/invite";
|
|
|
|
import InviteListItem from "@/components/admin/management/user/InviteListItem.vue";
|
2024-11-23 14:25:41 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
export default defineComponent({
|
|
|
|
computed: {
|
|
|
|
...mapState(useInviteStore, ["invites"]),
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.fetchInvites();
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
...mapActions(useInviteStore, ["fetchInvites"]),
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|