Add option to hide person cards

Now you should be able to hide person entities from the home page.
This commit is contained in:
Aalian Khan committed 2023-06-25 23:19:20 -04:00
1 parent e038bc64fd
commit 5bded12e70
4 files changed
+23 -19

No files matched your search

+5 -1
View File
@@ -161,7 +161,11 @@ class HomeView extends AbstractView {
const cards = [];
import("../cards/PersonCard").then(personModule => {
for (const person of Helper.entities.filter(entity => entity.entity_id.startsWith("person."))) {
for (const person of Helper.entities.filter(entity => {
return entity.entity_id.startsWith("person.")
&& entity.hidden_by == null
&& entity.disabled_by == null
})) {
cards.push(new personModule.PersonCard(person).getCard());
}
});