-
Greetings Programs! In directory.gallery.component.html, I am adding the number of files in the directory to the title: I would like to show the number of directories at the same time: "(n albums/n files)" I was thinking of adding another property to the DirectoryDTO object (directoryCount) but I'm not sure where to set it and how. Thanks, Wg |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
HI @bpatrik , Any thoughts on this? Thanks, Wg |
Beta Was this translation helpful? Give feedback.
-
Sorry I missed this. Adding album count is more tricky. You will need to create a new filed in the Directory entry and keep up-to-date recursively at every DB update. I'm doing something similar to Album covers. Note: I personally would prefer not print the number of directories inside a directory. (i.e.: i cannot accept a PR if you planned to so, sorry :/ ) |
Beta Was this translation helpful? Give feedback.
-
Hi @bpatrik , Got it sorted. I've forked it to https://github.com/wizgod/pigallery2 for anyone who might want to do the same. Comparing to master: master...wizgod:pigallery2:master Thanks, Wg |
Beta Was this translation helpful? Give feedback.
Hi @bpatrik ,
Got it sorted. I've forked it to https://github.com/wizgod/pigallery2 for anyone who might want to do the same.
Comparing to master: master...wizgod:pigallery2:master
Thanks,
Wg