Removed useless lazy directives

This commit is contained in:
Alexis
2025-04-17 22:14:10 +02:00
parent 73bd79c3c5
commit ad8120bdd0
5 changed files with 13 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ onMounted(() => {
<component :is="currentViewComponent" /> <component :is="currentViewComponent" />
<LazyCalendarSearch /> <CalendarSearch />
<LazyCalendarDialogCategories v-if="!isReadOnly" /> <LazyCalendarDialogCategories v-if="!isReadOnly" />
<LazyCalendarDialogUpdateEvent v-if="!isReadOnly" /> <LazyCalendarDialogUpdateEvent v-if="!isReadOnly" />
<LazyCalendarDialogDeleteEvent v-if="!isReadOnly" /> <LazyCalendarDialogDeleteEvent v-if="!isReadOnly" />

View File

@@ -75,7 +75,7 @@ onMounted(() => {
</button> </button>
</UiPopoverTrigger> </UiPopoverTrigger>
<LazyCalendarEventDetails <CalendarEventDetails
:event :event
:spans-multiple-days :spans-multiple-days
:is-start-event :is-start-event

View File

@@ -64,21 +64,21 @@ watch(isLoading, (n) => {
<div class="grid justify-items-center opacity-80"> <div class="grid justify-items-center opacity-80">
<PhCalendarX size="75" class="opacity-60" /> <PhCalendarX size="75" class="opacity-60" />
<LazyHeading level="h1"> <Heading level="h1">
{{ $t("entity.calendar.notFound") }} {{ $t("entity.calendar.notFound") }}
</LazyHeading> </Heading>
<p> <p>
{{ $t('entity.calendar.notFoundDescription') }} {{ $t('entity.calendar.notFoundDescription') }}
</p> </p>
<LazyUiButton variant="default" class="mt-4 gap-2" as-child> <UiButton variant="default" class="mt-4 gap-2" as-child>
<RouterLink to="/explore"> <RouterLink to="/explore">
<PhArrowBendDoubleUpLeft size="24" /> <PhArrowBendDoubleUpLeft size="24" />
{{ $t('entity.calendar.backToList') }} {{ $t('entity.calendar.backToList') }}
</RouterLink> </RouterLink>
</LazyUiButton> </UiButton>
</div> </div>
</div> </div>
</template> </template>

View File

@@ -153,8 +153,8 @@ function hideEditModal() {
</Spacing> </Spacing>
</section> </section>
<LazyWorldDialogCreate :modal-state="isCreateWorldModalOpen" @on-close="hideCreateDialog" /> <WorldDialogCreate :modal-state="isCreateWorldModalOpen" @on-close="hideCreateDialog" />
<LazyWorldDialogEdit :world="markedWorld" :modal-state="isEditWorldModalOpen" @on-close="hideEditModal" /> <WorldDialogEdit :world="markedWorld" :modal-state="isEditWorldModalOpen" @on-close="hideEditModal" />
<LazyWorldDialogDelete :world="markedWorld" :modal-state="isDeleteWorldModalOpen" @on-close="hideDeleteModal" /> <WorldDialogDelete :world="markedWorld" :modal-state="isDeleteWorldModalOpen" @on-close="hideDeleteModal" />
</main> </main>
</template> </template>

View File

@@ -251,10 +251,10 @@ function hideEditModal() {
</Spacing> </Spacing>
</section> </section>
<LazyWorldDialogEdit :world="world.data" :modal-state="isEditWorldModalOpen" @on-close="hideEditModal" /> <WorldDialogEdit :world="world.data" :modal-state="isEditWorldModalOpen" @on-close="hideEditModal" />
<LazyCalendarDialogCreate :world="world.data" :modal-state="isCreateCalendarModalOpen" @on-close="hideCreateDialog" /> <CalendarDialogCreate :world="world.data" :modal-state="isCreateCalendarModalOpen" @on-close="hideCreateDialog" />
<LazyCalendarDialogUpdate v-if="markedCalendar?.id" :world="world.data" :calendar="markedCalendar" :modal-state="isUpdateCalendarModalOpen" @on-close="hideUpdateDialog" /> <CalendarDialogUpdate :world="world.data" :calendar="markedCalendar" :modal-state="isUpdateCalendarModalOpen" @on-close="hideUpdateDialog" />
<LazyCalendarDialogDelete :calendar="markedCalendar" :modal-state="isDeleteCalendarModalOpen" @on-close="hideDeleteCalendarModal"/> <CalendarDialogDelete :calendar="markedCalendar" :modal-state="isDeleteCalendarModalOpen" @on-close="hideDeleteCalendarModal"/>
</template> </template>
<template v-else> <template v-else>
<div class="h-full w-full grid place-items-center"> <div class="h-full w-full grid place-items-center">