diff --git a/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html b/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html index 3f4a6d2..7c1ec8c 100644 --- a/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html +++ b/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html @@ -2,5 +2,8 @@
{{header}}
{{subheader}}
{{text}}
- +
+ +
+ \ No newline at end of file diff --git a/src/environments/gbu.env.prod.ts b/src/environments/gbu.env.prod.ts index 3e62b8a..12676bd 100644 --- a/src/environments/gbu.env.prod.ts +++ b/src/environments/gbu.env.prod.ts @@ -1,9 +1,9 @@ export const environment = { production: true, - apiUrl: 'https://nirgroup.testnir.ru', + apiUrl: 'https://gbu.testnir.ru', clientId: 2, - clientSecret: 'iqt55TXiXIkIiuUfZ8xnW5CQzOsnKllLebes9sN1', + clientSecret: 'N6YSSL2DqyC67SY5gQah2eX6pQXbsZjesQPzOXWK', project: null, - licence: 'ZL0ZKY9GSZDV', + licence: 'XDIR5Z6WXY39', defaultLocale: 'ru' }; diff --git a/src/gbu/component/layout/grid/grid.component.ts b/src/gbu/component/layout/grid/grid.component.ts index a35cd85..e0bef32 100644 --- a/src/gbu/component/layout/grid/grid.component.ts +++ b/src/gbu/component/layout/grid/grid.component.ts @@ -33,10 +33,12 @@ export class GridComponent { this.pagesService.find(currentPage.link,{include: 'children.children'}).subscribe( resp=> { let children = resp.data.children.data; - + console.log('children',children) this.news = children.find( (child:any) => { - if (!child.children) { + console.log('child',child) + if (!child.children.data.length) { + console.log('notChild',child) return false } else { return child.children.data.reduce( @@ -47,7 +49,7 @@ export class GridComponent { } } ).children.data - + this.news.forEach(page => { this.publicationsService.list({ page:1, @@ -60,7 +62,7 @@ export class GridComponent { page.publications = resp.data.slice(0,3).map( publication => ({ name: publication.name, - img: publication.posters.data[0].links.thumb, + img: publication.posters.data[0]?publication.posters.data[0].links.thumb:null, link: publication.link }) ); diff --git a/src/gbu/component/layout/jumbotron/jumbotron.component.html b/src/gbu/component/layout/jumbotron/jumbotron.component.html index ede75d7..7c72393 100644 --- a/src/gbu/component/layout/jumbotron/jumbotron.component.html +++ b/src/gbu/component/layout/jumbotron/jumbotron.component.html @@ -1,9 +1,9 @@
-