Hiding scroll buttons on small screens. Fixed channel count on overview.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
`, {
|
||||
|
||||
Reference in New Issue
Block a user