Hiding scroll buttons on small screens. Fixed channel count on overview.

This commit is contained in:
2020-06-28 03:58:16 +02:00
parent 4bf4183a2a
commit 087d349cec
5 changed files with 58 additions and 20 deletions

View File

@@ -122,8 +122,15 @@ function curateEntity(entity, parent, releases) {
children: [],
};
if (entity.children) {
if (entity.children.nodes) {
curatedEntity.children = entity.children.nodes.map(childEntity => curateEntity(childEntity, curatedEntity));
}
curatedEntity.childrenTotal = entity.children.totalCount;
}
if (entity.parent || parent) curatedEntity.parent = curateEntity(entity.parent || parent);
if (entity.children) curatedEntity.children = entity.children.map(childEntity => curateEntity(childEntity, curatedEntity));
if (releases) curatedEntity.releases = releases.map(release => curateRelease(release));
return curatedEntity;

View File

@@ -33,16 +33,18 @@ function initEntitiesActions(store, _router) {
slug
url
hasLogo
children: childEntities(
children: childEntitiesConnection(
orderBy: [PRIORITY_DESC, NAME_ASC],
) {
id
name
slug
url
type
priority
hasLogo
nodes {
id
name
slug
url
type
priority
hasLogo
}
}
parent {
id
@@ -147,6 +149,9 @@ function initEntitiesActions(store, _router) {
type
url
hasLogo
children: childEntitiesConnection {
totalCount
}
}
}
`, {