only show loading icon if there is an image to load

This commit is contained in:
2023-02-28 18:29:28 +10:00
parent c24c1f54be
commit a41e209123

View File

@@ -2,7 +2,9 @@
<div
class="sm-carousel-slide"
:style="{ backgroundImage: `url('${imageUrl}')` }">
<div v-if="imageUrl.length == 0" class="sm-carousel-slide-loading">
<div
v-if="image.length > 0 && imageUrl.length == 0"
class="sm-carousel-slide-loading">
<SMLoadingIcon />
</div>
<div v-else class="sm-carousel-slide-body">