X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fconfig%2Fedit-custom-config%2Fedit-homepage.component.ts;h=dc834da142ad3ff2a0ac470aafe6cc4b5dd07e68;hb=9df52d660feb722404be00a50f3c8a612bec1c15;hp=7decf8f758a75520a00f54722b56dca07da93cf2;hpb=2539932e16129992a2c0889b4ff527c265a8e2c7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts index 7decf8f75..dc834da14 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core' +import { Component, Input } from '@angular/core' import { FormGroup } from '@angular/forms' import { CustomMarkupService } from '@app/shared/shared-custom-markup' @@ -7,7 +7,7 @@ import { CustomMarkupService } from '@app/shared/shared-custom-markup' templateUrl: './edit-homepage.component.html', styleUrls: [ './edit-custom-config.component.scss' ] }) -export class EditHomepageComponent implements OnInit { +export class EditHomepageComponent { @Input() form: FormGroup @Input() formErrors: any @@ -17,9 +17,7 @@ export class EditHomepageComponent implements OnInit { } - ngOnInit () { - this.customMarkdownRenderer = async (text: string) => { - return this.customMarkup.buildElement(text) - } + getCustomMarkdownRenderer () { + return this.customMarkup.getCustomMarkdownRenderer() } }