diff --git a/app/views/admin/communication/unsplash/_selector.html.erb b/app/views/admin/communication/unsplash/_selector.html.erb index c984c52c4440c71d413bb1a1ebffc99c9a085653..8d6d8a637ef345e2e647214058607253c4aaee9e 100644 --- a/app/views/admin/communication/unsplash/_selector.html.erb +++ b/app/views/admin/communication/unsplash/_selector.html.erb @@ -52,14 +52,14 @@ about_featured_image_credit = "##{about_identifier}_featured_image_credit" </div> </div> <div class="row" ref="results"> + <p v-if="data.length === 0 || !data" >Aucun résultat</p> <div v-for="image in data" class="col-6 col-lg-2"> <img :src="image.thumb" :alt="image.alt" v-on:click="select(image)" class="img-fluid img-thumbnail mb-3" - :class="image === selected ? 'bg-secondary' : ''" - > + :class="image === selected ? 'bg-secondary' : ''"> </div> </div> </div>