metadata: hide hidden albums
Signed-off-by: Varun Patil <radialapps@gmail.com>pulsejet/aio-hw-docs
parent
60e080ee64
commit
f8d0a8a0d3
|
@ -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[] {
|
||||
|
|
Loading…
Reference in New Issue