diff --git a/cmd/photoprism/photoprism.go b/cmd/photoprism/photoprism.go index 61616ccf4..9df659845 100644 --- a/cmd/photoprism/photoprism.go +++ b/cmd/photoprism/photoprism.go @@ -26,6 +26,7 @@ func main() { commands.StopCommand, commands.IndexCommand, commands.ImportCommand, + commands.MomentsCommand, commands.PurgeCommand, commands.CopyCommand, commands.ConvertCommand, diff --git a/frontend/src/common/config.js b/frontend/src/common/config.js index 84564f159..1e51a9e8a 100644 --- a/frontend/src/common/config.js +++ b/frontend/src/common/config.js @@ -86,14 +86,20 @@ class Config { case "videos": this.values.count.videos += data.count; break; - case "files": - this.values.count.files += data.count; + case "albums": + this.values.count.albums += data.count; + break; + case "moments": + this.values.count.moments += data.count; + break; + case "months": + this.values.count.months += data.count; break; case "folders": this.values.count.folders += data.count; break; - case "moments": - this.values.count.moments += data.count; + case "files": + this.values.count.files += data.count; break; case "favorites": this.values.count.favorites += data.count; @@ -104,9 +110,6 @@ class Config { case "private": this.values.count.private += data.count; break; - case "albums": - this.values.count.albums += data.count; - break; case "photos": this.values.count.photos += data.count; break; diff --git a/frontend/src/component/p-navigation.vue b/frontend/src/component/p-navigation.vue index dcd393f2d..1aef0ece4 100644 --- a/frontend/src/component/p-navigation.vue +++ b/frontend/src/component/p-navigation.vue @@ -142,7 +142,7 @@ - + @@ -152,6 +152,22 @@ + + + Folders + {{ config.count.folders }} + + + + + + Months + {{ config.count.months }} + + + diff --git a/frontend/src/dialog/p-photo-album-dialog.vue b/frontend/src/dialog/p-photo-album-dialog.vue index 97b454e09..e9d02fe07 100644 --- a/frontend/src/dialog/p-photo-album-dialog.vue +++ b/frontend/src/dialog/p-photo-album-dialog.vue @@ -90,6 +90,7 @@ q: q, count: 1000, offset: 0, + type: "album" }; Album.search(params).then(response => { diff --git a/frontend/src/pages/album/photos.vue b/frontend/src/pages/album/photos.vue index 0525217c4..f32a2c02f 100644 --- a/frontend/src/pages/album/photos.vue +++ b/frontend/src/pages/album/photos.vue @@ -171,6 +171,7 @@ count: count, offset: offset, album: this.uid, + filter: this.model.Filter ? this.model.Filter : "", merged: true, }; @@ -227,6 +228,7 @@ count: this.pageSize, offset: this.offset, album: this.uid, + filter: this.model.Filter ? this.model.Filter : "", merged: true, }; diff --git a/frontend/src/pages/albums.vue b/frontend/src/pages/albums.vue index c2e74c565..ec7d46c2e 100644 --- a/frontend/src/pages/albums.vue +++ b/frontend/src/pages/albums.vue @@ -76,7 +76,7 @@ @contextmenu="onContextMenu($event, index)" :dark="selection.includes(album.UID)" :class="selection.includes(album.UID) ? 'elevation-10 ma-0 accent darken-1 white--text' : 'elevation-0 ma-1 accent lighten-3'" - :to="{name: 'album', params: {uid: album.UID, slug: album.Slug}}" + :to="{name: albumRoute(), params: {uid: album.UID, slug: album.Slug}}" >