From 8ee25e17b88b970703f4df9e74cb4726bbffd837 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 31 May 2021 11:33:49 +0200 Subject: Add ability to set custom markdown in description --- client/src/app/+home/home.component.html | 2 +- client/src/app/+home/home.component.ts | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'client/src/app/+home') diff --git a/client/src/app/+home/home.component.html b/client/src/app/+home/home.component.html index 645b9dc69..dfce46618 100644 --- a/client/src/app/+home/home.component.html +++ b/client/src/app/+home/home.component.html @@ -1,4 +1,4 @@
-
+
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) } } -- cgit v1.2.3