ff-admin/src/views/admin/management/user/Invite.vue

40 lines
1.2 KiB
Vue
Raw Normal View History

2024-11-23 14:25:41 +01:00
<template>
<MainTemplate>
<template #headerInsert>
<RouterLink :to="{ name: 'admin-user-user' }" class="text-primary">zurück zur Nutzerliste</RouterLink>
</template>
<template #topBar>
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
<h1 class="font-bold text-xl h-8">offene Einladungen</h1>
</div>
</template>
<template #diffMain>
<div class="flex flex-col gap-2 grow overflow-y-scroll px-7">
2024-11-24 15:31:08 +01:00
<InviteListItem v-for="invite in invites" :key="invite.username" :invite="invite" />
2024-11-23 14:25:41 +01:00
</div>
</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>