cleanup
This commit is contained in:
parent
03710dfdae
commit
9a1ff79f66
43 changed files with 264 additions and 92 deletions
|
@ -2,8 +2,8 @@
|
|||
<div class="flex flex-col h-fit w-full border border-primary rounded-md">
|
||||
<div class="bg-primary p-2 text-white flex flex-row gap-2 justify-between items-center">
|
||||
<p class="grow">{{ award.award }}</p>
|
||||
<PencilIcon class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
<PencilIcon v-if="can('update', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon v-if="can('delete', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
<div class="p-2">
|
||||
<p>erhalten am: {{ award.date }}</p>
|
||||
|
@ -19,6 +19,7 @@ import { mapState, mapActions } from "pinia";
|
|||
import type { MemberAwardViewModel } from "@/viewmodels/admin/memberAward.models";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -29,6 +30,9 @@ export default defineComponent({
|
|||
default: {},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(useAbilityStore, ["can"]),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openEditModal() {
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
<div class="bg-primary p-2 text-white flex flex-row gap-2 justify-between items-center">
|
||||
<EnvelopeIcon class="h-5 w-5 pr-1 box-content" v-if="communication.isNewsletterMain" />
|
||||
<p class="grow">{{ communication.type.type }} {{ communication.preferred ? "(bevorzugt)" : "" }}</p>
|
||||
<PencilIcon class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
<PencilIcon v-if="can('update', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon v-if="can('delete', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
<div class="p-2">
|
||||
<p v-for="field in communication.type.fields" :key="field">{{ field }}: {{ communication[field] || "--" }}</p>
|
||||
|
@ -18,6 +18,7 @@ import { mapState, mapActions } from "pinia";
|
|||
import type { CommunicationViewModel } from "@/viewmodels/admin/communication.models";
|
||||
import { EnvelopeIcon, PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -28,6 +29,9 @@ export default defineComponent({
|
|||
default: {},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(useAbilityStore, ["can"]),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openEditModal() {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
<div class="flex flex-col h-fit w-full border border-primary rounded-md">
|
||||
<div class="bg-primary p-2 text-white flex flex-row gap-2 justify-between items-center">
|
||||
<p class="grow">{{ position.executivePosition }} von {{ position.start }} bis {{ position.end ?? "heute" }}</p>
|
||||
<PencilIcon class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
<PencilIcon v-if="can('update', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon v-if="can('delete', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
<div v-if="position.note" class="p-2">
|
||||
<p v-if="position.note">Notiz: {{ position.note }}</p>
|
||||
|
@ -17,6 +17,7 @@ import { mapState, mapActions } from "pinia";
|
|||
import type { MemberExecutivePositionViewModel } from "@/viewmodels/admin/memberExecutivePosition.models";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -27,6 +28,9 @@ export default defineComponent({
|
|||
default: {},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(useAbilityStore, ["can"]),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openEditModal() {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<p class="grow">
|
||||
{{ qualification.qualification }} von {{ qualification.start }} bis {{ qualification.end ?? "heute" }}
|
||||
</p>
|
||||
<PencilIcon class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
<PencilIcon v-if="can('update', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon v-if="can('delete', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
<div v-if="qualification.note || qualification.terminationReason" class="p-2">
|
||||
<p v-if="qualification.note">Notiz: {{ qualification.note }}</p>
|
||||
|
@ -20,6 +20,7 @@ import { mapState, mapActions } from "pinia";
|
|||
import type { MemberQualificationViewModel } from "@/viewmodels/admin/memberQualification.models";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -30,6 +31,9 @@ export default defineComponent({
|
|||
default: {},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(useAbilityStore, ["can"]),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openEditModal() {
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
{{ membership.start }} bis {{ membership.end ?? "heute" }}:
|
||||
{{ membership.status }}
|
||||
</p>
|
||||
<PencilIcon class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
<PencilIcon v-if="can('update', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openEditModal" />
|
||||
<TrashIcon v-if="can('delete', 'club', 'member')" class="w-5 h-5 cursor-pointer" @click="openDeleteModal" />
|
||||
</div>
|
||||
<div v-if="membership.terminationReason || membership.internalId" class="p-2">
|
||||
<p v-if="membership.internalId">Interne ID: {{ membership.internalId }}</p>
|
||||
|
@ -21,6 +21,7 @@ import { mapState, mapActions } from "pinia";
|
|||
import type { MembershipViewModel } from "@/viewmodels/admin/membership.models";
|
||||
import { PencilIcon, TrashIcon } from "@heroicons/vue/24/outline";
|
||||
import { useModalStore } from "@/stores/modal";
|
||||
import { useAbilityStore } from "@/stores/ability";
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
|
@ -31,6 +32,9 @@ export default defineComponent({
|
|||
default: {},
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(useAbilityStore, ["can"]),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(useModalStore, ["openModal"]),
|
||||
openEditModal() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue