metadata: hide hidden albums

Signed-off-by: Varun Patil <radialapps@gmail.com>
pulsejet/aio-hw-docs
Varun Patil 2023-11-16 08:29:34 -08:00
parent 60e080ee64
commit f8d0a8a0d3
1 changed files with 8 additions and 1 deletions

View File

@ -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[] {