Skip to content
Snippets Groups Projects
Commit 8583af69 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fix biest #757

parent 0570d36c
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,9 @@ ...@@ -45,9 +45,9 @@
<p>{{ child.attributes.payload.description }}</p> <p>{{ child.attributes.payload.description }}</p>
</div> </div>
<footer> <footer>
{{ countChildren }} {{ countChildChildren(child)}}
<translate <translate
:translate-n="countChildren" :translate-n="countChildChildren(child)"
translate-plural="Seiten" translate-plural="Seiten"
> >
Seite Seite
...@@ -171,6 +171,9 @@ export default { ...@@ -171,6 +171,9 @@ export default {
return {}; return {};
} }
}, },
countChildChildren(child) {
return this.childrenById(child.id).length;
},
hasImage(child) { hasImage(child) {
return child.relationships?.image?.data !== null; return child.relationships?.image?.data !== null;
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment