]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+home/home.component.ts
Add ability to set custom markdown in description
[github/Chocobozzz/PeerTube.git] / client / src / app / +home / home.component.ts
CommitLineData
2539932e 1import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'
2539932e
C
2import { CustomPageService } from '@app/shared/shared-main/custom-page'
3
4@Component({
5 templateUrl: './home.component.html',
6 styleUrls: [ './home.component.scss' ]
7})
8
9export class HomeComponent implements OnInit {
10 @ViewChild('contentWrapper') contentWrapper: ElementRef<HTMLInputElement>
11
8ee25e17
C
12 homepageContent: string
13
2539932e 14 constructor (
2539932e
C
15 private customPageService: CustomPageService
16 ) { }
17
18 async ngOnInit () {
19 this.customPageService.getInstanceHomepage()
8ee25e17 20 .subscribe(({ content }) => this.homepageContent = content)
2539932e
C
21 }
22}