[pluginsFunctionality | DONE | CHANGED] sdg page: add helptexts if input available

This commit is contained in:
argirok 2024-05-09 10:17:33 +03:00
parent 1abd7c111f
commit 6c1c3ef2b2
3 changed files with 9 additions and 6 deletions

View File

@ -41,6 +41,7 @@
</div>
</div>
</div>
<helper *ngIf="pageContents && pageContents['top'] && pageContents['top'].length > 0" [texts]="pageContents['top']" class="uk-container"></helper>
<div class="uk-container uk-container-large uk-section" uk-scrollspy="target: [uk-scrollspy-class]; cls: uk-animation-slide-bottom-medium; delay: 200">
<div *ngIf="loading">
<loading></loading>

View File

@ -31,6 +31,7 @@ export class SdgComponent implements OnInit, OnDestroy {
properties: EnvProperties = properties;
openaireEntities = OpenaireEntities;
@Input() customFilter = null;
@Input() pageContents = null;
public breadcrumbs: Breadcrumb[] = [{name: 'home', route: '/'}, {name: 'Sustainable Development Goals'}];
subscriptions: Subscription[] = [];

View File

@ -9,13 +9,14 @@ import {Schema2jsonldModule} from "../sharedComponents/schema2jsonld/schema2json
import {SEOServiceModule} from "../sharedComponents/SEO/SEOService.module";
import {SdgRoutingModule} from './sdg-routing.module';
import {SdgComponent} from './sdg.component';
import {HelperModule} from "../utils/helper/helper.module";
@NgModule({
imports: [
CommonModule, FormsModule, RouterModule,
SdgRoutingModule, BreadcrumbsModule, RefineFieldResultsServiceModule,
LoadingModule, Schema2jsonldModule, SEOServiceModule
],
imports: [
CommonModule, FormsModule, RouterModule,
SdgRoutingModule, BreadcrumbsModule, RefineFieldResultsServiceModule,
LoadingModule, Schema2jsonldModule, SEOServiceModule, HelperModule
],
declarations: [
SdgComponent
],
@ -26,4 +27,4 @@ import {SdgComponent} from './sdg.component';
})
export class SdgModule {
}
}