Skip to content

Commit

Permalink
metadata: hide hidden albums
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Nov 16, 2023
1 parent 60e080e commit f8d0a8a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Metadata.vue
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,14 @@ export default defineComponent({
},
albums(): IAlbum[] {
return this.baseInfo?.clusters?.albums ?? [];
let albums = this.baseInfo?.clusters?.albums ?? [];
// Filter out hidden albums
if (!this.config.show_hidden_albums) {
albums = albums.filter((a) => !a.name.startsWith('.'));
}
return albums;
},
people(): IFace[] {
Expand Down

0 comments on commit f8d0a8a

Please sign in to comment.