diff --git a/lib/Service/GeophotoService.php b/lib/Service/GeophotoService.php index 137f2b8c0..7f05ca33c 100644 --- a/lib/Service/GeophotoService.php +++ b/lib/Service/GeophotoService.php @@ -158,7 +158,6 @@ public function getAllFromDB(string $userId, $folder=null, bool $respectNomediaA } $this->photosCache->set($key, $filesById, 60 * 60 * 24); } - shuffle($filesById); return $filesById; } @@ -241,7 +240,6 @@ public function getNonLocalizedFromDB (string $userId, $folder=null, bool $respe } $this->nonLocalizedPhotosCache->set($key, $filesById, 60 * 60 * 24); } - shuffle($filesById); return $filesById; } diff --git a/src/components/AppNavigationPhotosItem.vue b/src/components/AppNavigationPhotosItem.vue index 3b61e471e..35dd3d131 100644 --- a/src/components/AppNavigationPhotosItem.vue +++ b/src/components/AppNavigationPhotosItem.vue @@ -6,9 +6,16 @@ :allow-collapse="false" :force-menu="enabled" @click="$emit('photos-clicked')"> - - {{ photos.length > 1000 ? Math.floor(photos.length/1000).toString() + 'k' : photos.length > 99 ? '99+' : photos.length }} + {{ + (loadedPhotos > 1000 ? Math.floor(loadedPhotos/1000).toString() + 'k' : loadedPhotos > 99 ? '99+' : loadedPhotos) + '/' + + (totalPhotos > 1000 ? Math.floor(totalPhotos/1000).toString() + 'k' : totalPhotos > 99 ? '99+' : totalPhotos) + }} + + + {{ totalPhotos > 1000 ? Math.floor(totalPhotos/1000).toString() + 'k' : totalPhotos > 99 ? '99+' : totalPhotos }} !p.isUpdateable) - || (this.photos.length === 0 && !(optionsController.optionValues?.isCreatable && !optionsController.optionValues?.isUpdateable)) - }, }, methods: { diff --git a/src/components/Map.vue b/src/components/Map.vue index edb5a3759..bb614e0bb 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -84,17 +84,25 @@ ref="photosLayer" :map="map" :photos="photos" + :date-filter-enabled="sliderEnabled" + :date-filter-start="sliderStartTimestamp" + :date-filter-end="sliderEndTimestamp" :draggable="photosDraggable" @add-to-map-photo="$emit('add-to-map-photo', $event)" @coords-reset="$emit('coords-reset', $event)" @photo-moved="onPhotoMoved" - @open-sidebar="$emit('open-sidebar',$event)" /> + @open-sidebar="$emit('open-sidebar',$event)" + @cluster-loading="$emit('photo-clusters-loading',$event)" + @cluster-loaded="$emit('photo-clusters-loaded')" /> diff --git a/src/components/map/PhotoSuggestionsLayer.vue b/src/components/map/PhotoSuggestionsLayer.vue index dd528c77e..7b6d49d63 100644 --- a/src/components/map/PhotoSuggestionsLayer.vue +++ b/src/components/map/PhotoSuggestionsLayer.vue @@ -1,37 +1,34 @@ - - - + + :src="getPreviewUrl(currentSuggestion)"> - {{ getPhotoFormattedDate(p) }} + {{ getPhotoFormattedDate(currentSuggestion) }} - {{ basename(p.path) }} + {{ currentSuggestion ? basename(currentSuggestion.path) : '' }} - - + {{ t('maps', 'Display picture') }} @@ -54,7 +51,7 @@ - +
- {{ getPhotoFormattedDate(p) }} + {{ getPhotoFormattedDate(currentSuggestion) }}
- {{ basename(p.path) }} + {{ currentSuggestion ? basename(currentSuggestion.path) : '' }}