enhance: calendar add button
This commit is contained in:
parent
c774c62b40
commit
662f36b3e2
1 changed files with 8 additions and 5 deletions
|
@ -3,7 +3,10 @@
|
||||||
<template #topBar>
|
<template #topBar>
|
||||||
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
|
<div class="flex flex-row items-center justify-between pt-5 pb-3 px-7">
|
||||||
<h1 class="font-bold text-xl h-8">Kalender</h1>
|
<h1 class="font-bold text-xl h-8">Kalender</h1>
|
||||||
<LinkIcon class="text-gray-500 h-5 w-5 cursor-pointer" @click="openLinkModal" />
|
<div class="flex flex-row gap-2">
|
||||||
|
<PlusIcon class="text-gray-500 h-5 w-5 cursor-pointer" @click="select" />
|
||||||
|
<LinkIcon class="text-gray-500 h-5 w-5 cursor-pointer" @click="openLinkModal" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #diffMain>
|
<template #diffMain>
|
||||||
|
@ -26,7 +29,7 @@ import timeGridPlugin from "@fullcalendar/timegrid";
|
||||||
import interactionPlugin from "@fullcalendar/interaction";
|
import interactionPlugin from "@fullcalendar/interaction";
|
||||||
import { useCalendarStore } from "@/stores/admin/club/calendar";
|
import { useCalendarStore } from "@/stores/admin/club/calendar";
|
||||||
import { useAbilityStore } from "@/stores/ability";
|
import { useAbilityStore } from "@/stores/ability";
|
||||||
import { LinkIcon } from "@heroicons/vue/24/outline";
|
import { LinkIcon, PlusIcon } from "@heroicons/vue/24/outline";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -76,9 +79,9 @@ export default defineComponent({
|
||||||
this.openModal(
|
this.openModal(
|
||||||
markRaw(defineAsyncComponent(() => import("@/components/admin/club/calendar/CreateCalendarModal.vue"))),
|
markRaw(defineAsyncComponent(() => import("@/components/admin/club/calendar/CreateCalendarModal.vue"))),
|
||||||
{
|
{
|
||||||
start: e.startStr,
|
start: e?.startStr ?? new Date().toISOString(),
|
||||||
end: e.endStr,
|
end: e?.endStr ?? new Date().toISOString(),
|
||||||
allDay: e.allDay,
|
allDay: e?.allDay ?? false,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue