fix: perf issue with modal
All checks were successful
repod / xml (push) Successful in 27s
repod / php (push) Successful in 54s
repod / nodejs (push) Successful in 1m51s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-01-18 10:12:55 +01:00
parent f26c7fcc70
commit b69516031a
2 changed files with 10 additions and 12 deletions

View File

@ -33,19 +33,17 @@
{{ t('repod', 'Stop') }} {{ t('repod', 'Stop') }}
</NcActionButton> </NcActionButton>
</template> </template>
<template #extra>
<NcModal :show="modalEpisode && modalEpisode.guid === episode.guid" @close="modalEpisode = null">
<Modal :description="episode.description"
:image="episode.image"
:link="episode.link"
:name="episode.name"
:size="episode.size"
:title="episode.title"
:url="episode.url" />
</NcModal>
</template>
</NcListItem> </NcListItem>
</ul> </ul>
<NcModal v-if="modalEpisode" @close="modalEpisode = null">
<Modal :description="modalEpisode.description"
:image="modalEpisode.image"
:link="modalEpisode.link"
:name="modalEpisode.name"
:size="modalEpisode.size"
:title="modalEpisode.title"
:url="modalEpisode.url" />
</NcModal>
</div> </div>
</template> </template>

View File

@ -6,7 +6,7 @@
<router-link :to="hash"> <router-link :to="hash">
<i>{{ player.episode.title }}</i> <i>{{ player.episode.title }}</i>
</router-link> </router-link>
<NcModal :show="modal" @close="modal = false"> <NcModal v-if="modal" @close="modal = false">
<Modal :description="player.episode.description" <Modal :description="player.episode.description"
:image="player.episode.image" :image="player.episode.image"
:link="player.episode.link" :link="player.episode.link"