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 }}