X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bhome%2Fhome.component.ts;h=6e0c96760b95bf324e34f46080af0f03d1fbd98d;hb=8ee25e17b88b970703f4df9e74cb4726bbffd837;hp=16d3a6df7cc6a405650d48de40098fbbad662498;hpb=15f35256af15b97d2298cc44e76ffcafe73a1c88;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+home/home.component.ts b/client/src/app/+home/home.component.ts index 16d3a6df7..6e0c96760 100644 --- a/client/src/app/+home/home.component.ts +++ b/client/src/app/+home/home.component.ts @@ -1,6 +1,4 @@ - import { Component, ElementRef, OnInit, ViewChild } from '@angular/core' -import { CustomMarkupService } from '@app/shared/shared-custom-markup' import { CustomPageService } from '@app/shared/shared-main/custom-page' @Component({ @@ -11,16 +9,14 @@ import { CustomPageService } from '@app/shared/shared-main/custom-page' export class HomeComponent implements OnInit { @ViewChild('contentWrapper') contentWrapper: ElementRef + homepageContent: string + constructor ( - private customMarkupService: CustomMarkupService, private customPageService: CustomPageService ) { } async ngOnInit () { this.customPageService.getInstanceHomepage() - .subscribe(async ({ content }) => { - const element = await this.customMarkupService.buildElement(content) - this.contentWrapper.nativeElement.appendChild(element) - }) + .subscribe(({ content }) => this.homepageContent = content) } }